Created
July 3, 2020 15:33
-
-
Save httpmurilo/94029d35b50cf1e312d12e924628b4db to your computer and use it in GitHub Desktop.
Dockerfile ASP.NET Core
This file contains hidden or 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
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim AS base | |
WORKDIR /app | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build | |
WORKDIR /src | |
COPY Faculdade.csproj /src/Faculdade.csproj | |
RUN dotnet restore | |
COPY . . | |
RUN dotnet publish -c Release -o /pub | |
FROM base AS final | |
WORKDIR /app | |
COPY --from=build /pub . | |
ENTRYPOINT ["dotnet", "Faculdade.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment