Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
docker4.net/docker/02-05-packaging-dotnet-apps/reference-data-api/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21 lines (15 sloc)
622 Bytes
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
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as builder | |
WORKDIR /src | |
COPY src/SignUp.Entities/SignUp.Entities.csproj ./SignUp.Entities/ | |
COPY src/SignUp.Api.ReferenceData/SignUp.Api.ReferenceData.csproj ./SignUp.Api.ReferenceData/ | |
WORKDIR /src/SignUp.Api.ReferenceData | |
RUN dotnet restore | |
COPY src /src | |
RUN dotnet publish -c Release -o /out SignUp.Api.ReferenceData.csproj | |
# app image | |
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 | |
EXPOSE 80 | |
WORKDIR /app | |
ENTRYPOINT ["dotnet", "/app/SignUp.Api.ReferenceData.dll"] | |
COPY --from=builder /out/ . | |
COPY ./docker/02-05-packaging-dotnet-apps/reference-data-api/appsettings.json . |