Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM mcr.microsoft.com/dotnet/core/sdk:2.2.203 as build
WORKDIR /code
COPY . .
RUN dotnet restore
RUN dotnet publish -o output -c Release --no-restore
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 as runtime
WORKDIR /app
COPY --from=build /code/output ./
EXPOSE 8081
EXPOSE 443
ENTRYPOINT [ "dotnet", "CalcApi.dll" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.