cloudnet-compose/worker/dotnet/Dockerfile
2018-09-21 19:23:31 +01:00

16 lines
297 B
Docker

FROM microsoft/dotnet:2.1-sdk as builder
WORKDIR /Worker
COPY Worker/Worker.csproj .
RUN dotnet restore
COPY /Worker .
RUN dotnet publish -c Release -o /out Worker.csproj
# app image
FROM microsoft/dotnet:2.1-runtime
WORKDIR /app
ENTRYPOINT ["dotnet", "Worker.dll"]
COPY --from=builder /out .