Skip to content

Instantly share code, notes, and snippets.

@Andersoft
Last active June 3, 2022 15:58
Show Gist options
  • Save Andersoft/186bd40e0d7fb6b790059d9a668189fc to your computer and use it in GitHub Desktop.
Save Andersoft/186bd40e0d7fb6b790059d9a668189fc to your computer and use it in GitHub Desktop.
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
ENV APP_NAME "${project}.dll"
EXPOSE 80
EXPOSE 443
COPY --from=publish /app/publish .
ENTRYPOINT dotnet "$APP_NAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment