File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
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
+
1
4
# ##############################################################################
2
- FROM mcr.microsoft.com/dotnet/sdk:8.0.402-alpine3.19-amd64 AS init
5
+ FROM ${BUILDTIME_IMAGE} AS init
3
6
4
7
ENV WORKDIR=/app
5
8
WORKDIR ${WORKDIR}
@@ -104,7 +107,7 @@ CMD ["make", "test"]
104
107
# # in the production phase, "good practices" such as
105
108
# # WORKDIR and USER are maintained
106
109
# #
107
- FROM mcr.microsoft.com/dotnet/runtime:8.0.8-alpine3.19-amd64 AS production
110
+ FROM ${RUNTIME_IMAGE} AS production
108
111
109
112
RUN apk add --update --no-cache make \
110
113
&& apk upgrade --no-cache # Avoid some CVE reports updating basic packages.
You can’t perform that action at this time.
0 commit comments