Update Dockerfile
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user