Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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