distributed-computing/tasks/nikiforova-ts/Lab_3/worker-1/DockerFile

11 lines
256 B
Plaintext
Raw Permalink Normal View History

2023-12-18 17:56:15 +04:00
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app
COPY . ./
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "worker-1.dll"]