Skip to content

Commit 385cab7

Browse files
committed
Update
1 parent cb654dd commit 385cab7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/SqlClient.ConsoleApp/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build
1+
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
25
ARG TARGETARCH
36
WORKDIR /source
47

@@ -10,8 +13,8 @@ RUN dotnet restore -a $TARGETARCH
1013
COPY . ./
1114
RUN dotnet publish -c Release -a $TARGETARCH --no-restore -o /app
1215

13-
# Use the official Microsoft .NET runtime image
14-
FROM mcr.microsoft.com/dotnet/runtime:9.0 AS final
16+
17+
FROM mcr.microsoft.com/dotnet/runtime:${RUNTIME_VERSION} AS final
1518
WORKDIR /app
1619
COPY --link --from=build /app ./
1720
ARG APP_UID=1000

0 commit comments

Comments
 (0)