Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
techgarage-ir authored Sep 10, 2024
1 parent 37aa29f commit 0b0b09d
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,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS publish
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS publish
WORKDIR /src

# Define platform
Expand Down Expand Up @@ -41,7 +41,7 @@ RUN dotnet publish "./UI/MTWireGuard.csproj" -c Release \
/p:PublishTrimmed=true

# Create final image and run project
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-noble-chiseled-extra AS final
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/runtime-deps:8.0-noble-chiseled-extra AS final

ENV TZ=Asia/Tehran
WORKDIR /app
Expand Down

0 comments on commit 0b0b09d

Please sign in to comment.