Skip to content

Commit

Permalink
no curl
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleonm committed Nov 19, 2024
1 parent 6305c78 commit 6298c2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG PROJECT_NAME_ARG
ARG ENVIRONMENT_ARG

# Pull down the image with .NET Core SDK
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine3.15-arm64v8 AS Build
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine-arm64v8 AS Build
LABEL maintainer="David Leon <david.leon.m@gmail.com>"

# Global args re-mapped for this stage
Expand All @@ -24,10 +24,10 @@ WORKDIR "/src/$PROJECT_NAME_ARG"
RUN dotnet publish "./$PROJECT_NAME_ARG.csproj" --configuration Release --output "/app/publish"

# Pull down the image which includes only the ASP.NET core runtime
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.15-arm64v8
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 6298c2d

Please sign in to comment.