Skip to content

Commit

Permalink
qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleonm committed Nov 19, 2024
1 parent 6298c2d commit 4a77c2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/on-push-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]

0 comments on commit 4a77c2a

Please sign in to comment.