Merge pull request #102 from ThisIsQasim/patch-1

Add ARM64 images
This commit is contained in:
Hargata Softworks
2024-01-15 10:13:41 -07:00
committed by GitHub
2 changed files with 7 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/hargata/lubelogger:latest
ghcr.io/hargata/lubelogger:latest

View File

@@ -1,12 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /App
COPY . ./
RUN dotnet restore
RUN dotnet publish -c Release -o out
ARG TARGETARCH
RUN dotnet restore -a $TARGETARCH
RUN dotnet publish -a $TARGETARCH -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /App
COPY --from=build-env /App/out .
EXPOSE 8080
CMD ["./CarCareTracker"]
CMD ["./CarCareTracker"]