Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created May 27, 2019 22:23
Show Gist options
  • Save xximjasonxx/d2be0efbc3e91f2cdded7fb70e6748b0 to your computer and use it in GitHub Desktop.
Save xximjasonxx/d2be0efbc3e91f2cdded7fb70e6748b0 to your computer and use it in GitHub Desktop.
FROM mcr.microsoft.com/dotnet/core/sdk:2.2.203 as build
WORKDIR /code
COPY . .
RUN dotnet restore
RUN dotnet publish -o output -c Release
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 as runtime
WORKDIR /app
COPY --from=build /code/output ./
EXPOSE 80
ENTRYPOINT [ "dotnet", "StockPriceApi.dll", "--environment=Cluster" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment