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 0179fd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ jobs:
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
build-args: |
TARGET_ARCH=${{ matrix.arch }}
TARGETARCH=${{ matrix.arch }}
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Dockerfile
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
ARG TARGET_ARCH=amd64
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG TARGETARCH=amd64

COPY Source /Source
RUN dotnet publish \
/Source/LibationCli/LibationCli.csproj \
--runtime linux-${TARGET_ARCH} \
--arch linux-${TARGETARCH} \
--configuration Release \
--output /Source/bin/Publish/Linux-chardonnay \
-p:PublishProfile=/Source/LibationCli/Properties/PublishProfiles/LinuxProfile.pubxml
Expand All @@ -28,7 +28,7 @@ RUN apt-get update && apt-get -y upgrade && \
apt-get install -y jq && \
mkdir -m777 ${LIBATION_CONFIG_INTERNAL} ${LIBATION_BOOKS_DIR}

COPY --from=build-env /Source/bin/Publish/Linux-chardonnay /libation
COPY --from=build /Source/bin/Publish/Linux-chardonnay /libation
COPY Docker/* /libation

USER ${USER_UID}:${USER_GID}
Expand Down

0 comments on commit 0179fd8

Please sign in to comment.