Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
FROM microsoft/dotnet:2-sdk | ||
|
||
# Using multi stage build as per https://docs.docker.com/engine/examples/dotnetcore/ | ||
FROM microsoft/aspnetcore-build:2.0 AS build-env | ||
WORKDIR /app | ||
|
||
COPY ["idserv4.csproj", "./"] | ||
|
||
RUN dotnet restore | ||
|
||
COPY . . | ||
RUN dotnet publish -c Debug -o out | ||
|
||
RUN dotnet publish -c Debug | ||
|
||
# Build runtime image | ||
FROM microsoft/aspnetcore:2.0 | ||
WORKDIR /app | ||
COPY --from=build-env /app/out . | ||
EXPOSE 5000 | ||
ENTRYPOINT ["dotnet", "run"] | ||
ENTRYPOINT ["dotnet", "IdServ.dll"] |
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