peachpie.dockerfile 278 B

1234567891011
  1. FROM microsoft/dotnet:2.1-sdk-stretch AS build
  2. WORKDIR /app
  3. COPY . .
  4. RUN dotnet publish -c Release -o ../out Server
  5. FROM microsoft/dotnet:2.1-aspnetcore-runtime AS runtime
  6. ENV COMPlus_ReadyToRun 0
  7. WORKDIR /app
  8. COPY --from=build /app/out ./
  9. ENTRYPOINT ["dotnet", "Server.dll"]