Skip to content

Commit 73eb766

Browse files
authored
Merge pull request #202 from sir-gon/develop
[Docker] Parametric base image version.
2 parents 8bcb024 + 82b364d commit 73eb766

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
ARG BUILDTIME_IMAGE=mcr.microsoft.com/dotnet/sdk:8.0.402-alpine3.19
2+
ARG RUNTIME_IMAGE=mcr.microsoft.com/dotnet/runtime:8.0.8-alpine3.19
3+
14
###############################################################################
2-
FROM mcr.microsoft.com/dotnet/sdk:8.0.402-alpine3.19-amd64 AS init
5+
FROM ${BUILDTIME_IMAGE} AS init
36

47
ENV WORKDIR=/app
58
WORKDIR ${WORKDIR}
@@ -104,7 +107,7 @@ CMD ["make", "test"]
104107
## in the production phase, "good practices" such as
105108
## WORKDIR and USER are maintained
106109
##
107-
FROM mcr.microsoft.com/dotnet/runtime:8.0.8-alpine3.19-amd64 AS production
110+
FROM ${RUNTIME_IMAGE} AS production
108111

109112
RUN apk add --update --no-cache make \
110113
&& apk upgrade --no-cache # Avoid some CVE reports updating basic packages.

0 commit comments

Comments
 (0)