Update Dockerfile
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
# Build stage
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
|
||||
# install curl so healthcheck can be run
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
@@ -15,6 +11,10 @@ RUN dotnet publish LibraryWeb.csproj -c Release -o /app/publish --no-restore
|
||||
# Runtime stage
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
||||
|
||||
# install curl so healthcheck can be run
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Listen on all interfaces so Coolify can reach the app
|
||||
|
||||
Reference in New Issue
Block a user