Skip to content

Commit a92f255

Browse files
updated Dockerfile
1 parent b84fc04 commit a92f255

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# syntax=docker/dockerfile:1.3
22

33
# Create a stage for building the application.
4-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
5-
ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
4+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
5+
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
66

77
COPY src /source
88

@@ -11,6 +11,7 @@ WORKDIR /source
1111
# This is the architecture you’re building for, which is passed in by the builder.
1212
# Placing it here allows the previous steps to be cached across architectures.
1313
ARG TARGETARCH
14+
ENV HOME=/tmp/${TARGETARCH}
1415

1516
RUN apk update && apk add --no-cache libxml2-utils
1617

@@ -34,7 +35,7 @@ RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages \
3435
# runtime dependencies for the application. This often uses a different base
3536
# image from the build stage where the necessary files are copied from the build
3637
# stage.
37-
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS final
38+
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
3839
WORKDIR /app
3940

4041
# Copy everything needed to run the app from the "build" stage.

0 commit comments

Comments
 (0)