Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ARG BUILDTIME_IMAGE=mcr.microsoft.com/dotnet/sdk:8.0.402-alpine3.19
ARG RUNTIME_IMAGE=mcr.microsoft.com/dotnet/runtime:8.0.8-alpine3.19

###############################################################################
FROM mcr.microsoft.com/dotnet/sdk:8.0.402-alpine3.19-amd64 AS init
FROM ${BUILDTIME_IMAGE} AS init

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

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