Update Dockerfile

This commit is contained in:
2026-08-06 15:56:17 +03:00
parent c89d440130
commit a4a31eba83

View File

@@ -1,10 +1,6 @@
# Build stage # Build stage
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build 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 WORKDIR /app
COPY . . COPY . .
@@ -15,6 +11,10 @@ RUN dotnet publish LibraryWeb.csproj -c Release -o /app/publish --no-restore
# Runtime stage # Runtime stage
FROM mcr.microsoft.com/dotnet/aspnet:10.0 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 WORKDIR /app
# Listen on all interfaces so Coolify can reach the app # Listen on all interfaces so Coolify can reach the app