mirror of
https://github.com/dockersamples/example-voting-app.git
synced 2026-05-14 05:26:46 +00:00
16 lines
323 B
Docker
16 lines
323 B
Docker
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 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 mcr.microsoft.com/dotnet/core/aspnet:2.1
|
|
|
|
WORKDIR /app
|
|
ENTRYPOINT ["dotnet", "Result.dll"]
|
|
|
|
COPY --from=builder /out . |