modified: Dockerfile

This commit is contained in:
akhait 2024-09-02 16:00:45 +03:00
parent 2870d2f3eb
commit a082674157

View file

@ -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 WORKDIR /app
# Separate layers here to avoid redoing dependencies on code change. # Separate layers here to avoid redoing dependencies on code change.
@ -8,9 +8,9 @@ RUN dotnet restore
# Now the code. # Now the code.
COPY . . 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 WORKDIR /app
COPY --from=build /app/out . COPY --from=build /app/out .