mirror of
https://github.com/dockersamples/example-voting-app.git
synced 2026-05-07 18:16:35 +00:00
16 lines
346 B
Docker
16 lines
346 B
Docker
FROM microsoft/dotnet:2.1-sdk-nanoserver-sac2016 as builder
|
|
|
|
WORKDIR /Result
|
|
COPY Result/Result.csproj .
|
|
RUN dotnet restore
|
|
|
|
COPY /Result .
|
|
RUN dotnet publish -c Release -o /out Result.csproj
|
|
|
|
# app image
|
|
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-sac2016
|
|
|
|
WORKDIR /app
|
|
ENTRYPOINT ["dotnet", "Result.dll"]
|
|
|
|
COPY --from=builder /out . |