From 4a77c2a8a126eea50ff49f4ba96c8765839f25d9 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 19 Nov 2024 12:09:22 +0100 Subject: [PATCH] qemu --- .github/workflows/on-push-to-main.yml | 4 ++++ Dockerfile | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on-push-to-main.yml b/.github/workflows/on-push-to-main.yml index adcdf1a..319f421 100644 --- a/.github/workflows/on-push-to-main.yml +++ b/.github/workflows/on-push-to-main.yml @@ -33,6 +33,10 @@ jobs: uses: KageKirin/get-csproj-version@v1 with: file: ./Code/src/WeatherStationProject.Dashboard.App/WeatherStationProject.Dashboard.App.csproj + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: linux/arm64 - name: Build and push Dashboard id: push uses: docker/build-push-action@v6 diff --git a/Dockerfile b/Dockerfile index d8503e1..26322d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ RUN dotnet publish "./$PROJECT_NAME_ARG.csproj" --configuration Release --output FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine-arm64v8 # Install needed app -# RUN apk add --no-cache curl +RUN apk add --no-cache curl # Global args re-mapped for this stage ARG PROJECT_NAME_ARG @@ -48,7 +48,7 @@ COPY --from=Build "/app/publish" "/app" WORKDIR "/app" # Configure the health check command -# HEALTHCHECK --interval=300s --start-period=60s CMD curl --insecure --silent --fail https://localhost:1443/api/health-check || exit 1 +HEALTHCHECK --interval=300s --start-period=60s CMD curl --insecure --silent --fail https://localhost:1443/api/health-check || exit 1 # Run the application ENTRYPOINT ["ash", "-c", "dotnet $PROJECT_NAME.dll"] \ No newline at end of file