Skip to content

Commit

Permalink
Specify platform(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixil98 committed Oct 22, 2024
1 parent 21bedca commit ae141ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dockerfile
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
ARG TARGET_ARCH=amd64

FROM --platform=linux/${TARGET_ARCH} mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
ARG TARGET_ARCH=amd64
COPY Source /Source
RUN dotnet publish \
/Source/LibationCli/LibationCli.csproj \
Expand All @@ -10,7 +10,7 @@ RUN dotnet publish \
--output /Source/bin/Publish/Linux-chardonnay \
-p:PublishProfile=/Source/LibationCli/Properties/PublishProfiles/LinuxProfile.pubxml

FROM mcr.microsoft.com/dotnet/runtime:8.0
FROM --platform=linux/${TARGET_ARCH} mcr.microsoft.com/dotnet/runtime:8.0
ARG USER_UID=1001
ARG USER_GID=1001

Expand Down

0 comments on commit ae141ae

Please sign in to comment.