distributed-computing/tasks/mironov-eo/lab_2/worker-2/Dockerfile

12 lines
257 B
Docker
Raw Permalink Normal View History

2023-10-31 00:41:47 +04:00
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
WORKDIR /app
COPY . ./
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "worker-2.dll"]