Skip to content

Instantly share code, notes, and snippets.

@radutta
Created March 13, 2020 10:50
Show Gist options
  • Save radutta/7e2b06c2d4998f3819a65aae9fbf6c52 to your computer and use it in GitHub Desktop.
Save radutta/7e2b06c2d4998f3819a65aae9fbf6c52 to your computer and use it in GitHub Desktop.
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine AS build
WORKDIR /app
COPY *.csproj ./
RUN dotnet restore
COPY . .
# RUN dotnet --version
RUN dotnet publish --configuration Release --output out
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-alpine as stage
WORKDIR /app
COPY --from=build /app/out .
ENTRYPOINT ["dotnet", "PartyInvite.dll"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment