Skip to content

Instantly share code, notes, and snippets.

@fredrkl
Created December 18, 2018 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredrkl/937ef35024cea5ba083f4081f64a00f1 to your computer and use it in GitHub Desktop.
Save fredrkl/937ef35024cea5ba083f4081f64a00f1 to your computer and use it in GitHub Desktop.
FROM microsoft/dotnet:2.0.3-sdk AS build
LABEL maintainer="themaintainer@themaintainer.com"
WORKDIR /app
COPY . .
RUN dotnet restore ./IdentityServer.csproj \
&& dotnet publish ./IdentityServer.csproj -o ./out -c Release
FROM microsoft/aspnetcore:2.0.5
WORKDIR /app
COPY --from=build /app/out .
EXPOSE 80
ENTRYPOINT ["dotnet", "IdentityServer.dll"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment