We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb654dd commit 385cab7Copy full SHA for 385cab7
src/SqlClient.ConsoleApp/Dockerfile
@@ -1,4 +1,7 @@
1
-FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build
+ARG BUILD_SDK_VERSION=9.0
2
+ARG RUNTIME_VERSION=9.0
3
+
4
+FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:${BUILD_SDK_VERSION} AS build
5
ARG TARGETARCH
6
WORKDIR /source
7
@@ -10,8 +13,8 @@ RUN dotnet restore -a $TARGETARCH
10
13
COPY . ./
11
14
RUN dotnet publish -c Release -a $TARGETARCH --no-restore -o /app
12
15
-# Use the official Microsoft .NET runtime image
-FROM mcr.microsoft.com/dotnet/runtime:9.0 AS final
16
17
+FROM mcr.microsoft.com/dotnet/runtime:${RUNTIME_VERSION} AS final
18
WORKDIR /app
19
COPY --link --from=build /app ./
20
ARG APP_UID=1000
0 commit comments