From a082674157ac1602255b0e8bf32f1617d7747432 Mon Sep 17 00:00:00 2001 From: akhait Date: Mon, 2 Sep 2024 16:00:45 +0300 Subject: [PATCH] modified: Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9bd5f3d..677db87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM 192.168.248.2:5000/debian:12-slim AS build +FROM mcr.microsoft.com/dotnet/sdk:6.0-bookworm-slim AS build WORKDIR /app # Separate layers here to avoid redoing dependencies on code change. @@ -8,9 +8,9 @@ RUN dotnet restore # Now the code. COPY . . -RUN dotnet publish -r linux-musl-x64 -c Release -o out +RUN dotnet publish --self-contained -r debian.12-x64 -c Release -o out -FROM 192.168.248.2:5000/debian:12-slim AS runtime +FROM mcr.microsoft.com/dotnet/runtime:6.0-bookworm-slim AS runtime WORKDIR /app COPY --from=build /app/out .