Skip to content

Instantly share code, notes, and snippets.

@gsedubun
Created October 3, 2018 07:43
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 gsedubun/b33de1bf01e31332d4efde4aa24d2c20 to your computer and use it in GitHub Desktop.
Save gsedubun/b33de1bf01e31332d4efde4aa24d2c20 to your computer and use it in GitHub Desktop.
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /app
COPY . .
RUN dotnet restore
WORKDIR /app/Latihan.Web
RUN dotnet publish -c Release -o out
FROM microsoft/dotnet:2.1-aspnetcore-runtime-alpine AS runtime
WORKDIR /app
COPY --from=build /app/Latihan.Web/out ./
ENTRYPOINT [ "dotnet","Latihan.Web.dll","--urls","http://0.0.0.0:80" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment