Skip to content

Instantly share code, notes, and snippets.

@AdnanCukur
Created November 20, 2017 20:16
Show Gist options
  • Save AdnanCukur/d54ed501de3ad6abf000e8b6a20d1cb2 to your computer and use it in GitHub Desktop.
Save AdnanCukur/d54ed501de3ad6abf000e8b6a20d1cb2 to your computer and use it in GitHub Desktop.
FROM microsoft/aspnetcore-build:1.0-2.0 AS build-env
WORKDIR /generator
COPY . ./application/
RUN dotnet restore application/WebApplicationFolder/WebApplication.csproj
WORKDIR /generator
RUN dotnet publish application/WebApplicationFolder/WebApplication.csproj -c Release -o /publish
FROM microsoft/aspnetcore:2.0
COPY --from=build-env /publish /publish
WORKDIR /publish
ENTRYPOINT ["dotnet", "WebApplication.dll"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment