distributed-computing/tasks/khalitova-am/lab_2/worker-1/Dockerfile

13 lines
260 B
Docker
Raw Normal View History

2023-10-03 23:36:51 +04:00
#
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
WORKDIR /app
COPY . ./
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "worker-1.dll"]