Skip to content

Instantly share code, notes, and snippets.

@ducmeit1
Created July 15, 2019 08:21
Show Gist options
  • Save ducmeit1/6e9c25e07b7487b399f0369a3cfa2960 to your computer and use it in GitHub Desktop.
Save ducmeit1/6e9c25e07b7487b399f0369a3cfa2960 to your computer and use it in GitHub Desktop.
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env
WORKDIR /app
COPY . ./
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2
WORKDIR /app
COPY --from=build-env /app/Customer.API/out .
ENTRYPOINT [ "dotnet", "Customer.API.dll" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment