Created
January 7, 2020 14:07
-
-
Save 0x414c49/01bcbe7e0c0cef9eaa119db006c4c21a to your computer and use it in GitHub Desktop.
Aspnet core deployment-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We only ship the published app in the image | |
# so we only use ASPNET runtime as the base-image | |
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS runtime | |
EXPOSE 80 | |
EXPOSE 443 | |
# Copy | |
WORKDIR /app | |
COPY ./publish ./ | |
ENTRYPOINT ["dotnet", "MyWebApp.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment