2018-09-26 20:41:20 +02:00
|
|
|
FROM microsoft/dotnet:2.1-sdk-nanoserver-sac2016 as builder
|
2018-09-21 20:23:31 +02:00
|
|
|
|
|
|
|
WORKDIR /Worker
|
|
|
|
COPY Worker/Worker.csproj .
|
|
|
|
RUN dotnet restore
|
|
|
|
|
|
|
|
COPY /Worker .
|
|
|
|
RUN dotnet publish -c Release -o /out Worker.csproj
|
|
|
|
|
|
|
|
# app image
|
2018-09-26 20:41:20 +02:00
|
|
|
FROM microsoft/dotnet:2.1-runtime-nanoserver-sac2016
|
2018-09-21 20:23:31 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
ENTRYPOINT ["dotnet", "Worker.dll"]
|
|
|
|
|
|
|
|
COPY --from=builder /out .
|