distributed-computing/tasks/ostrovskaya-sf/lab_3/worker-2/Dockerfile
Софья Островская 8badb568b7 check
2023-12-15 02:50:10 +04:00

11 lines
256 B
Docker

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-2.dll"]