Skip to content

Commit

Permalink
Update Dockerfile to use alpine variant for runtime image
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Nov 24, 2024
1 parent 811bd80 commit 54e1bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build-env
LABEL stage=build-env
WORKDIR /app

Expand All @@ -24,7 +24,7 @@ RUN for plugin in /app/Plugins/*; do \
RUN dotnet publish /app/Web/Grand.Web/Grand.Web.csproj -c Release -o ./build/release -p:SourceRevisionId=$GIT_COMMIT -p:GitBranch=$GIT_BRANCH

# Runtime stage
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS runtime
EXPOSE 8080
WORKDIR /app
COPY --from=build-env /app/build/release .
Expand Down

0 comments on commit 54e1bd6

Please sign in to comment.