Skip to content

Commit 4a66dc3

Browse files
authored
Merge pull request #2 from yiqisoft/main
fix: docker build without git
2 parents 2116c98 + 42fc23d commit 4a66dc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app-service-template/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ FROM python:3.10-alpine3.20
44
LABEL license='SPDX-License-Identifier: Apache-2.0' \
55
copyright='Copyright (c) 2024: IOTech'
66

7+
RUN apk add --update --no-cache git
8+
# Ensure using latest versions of all installed packages to avoid any recent CVEs
9+
RUN apk --no-cache upgrade
10+
711
# Must specify root to the parent directory of app-functions-sdk-python source folder with --build-context argument
812
# when running docker build command
913
COPY --from=root /src /src

0 commit comments

Comments
 (0)