Skip to content

Instantly share code, notes, and snippets.

@murbanowicz
Created April 8, 2020 12:16
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 murbanowicz/84c46e805492dc2c31031cc3cddb00ef to your computer and use it in GitHub Desktop.
Save murbanowicz/84c46e805492dc2c31031cc3cddb00ef to your computer and use it in GitHub Desktop.
NET Core + React + react-snap
FROM murbanowicz/net-core-react-builder AS builder
WORKDIR /build
COPY . .
RUN dotnet restore
RUN dotnet publish -c Release -o /app
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS final
WORKDIR /app
COPY --from=builder /app .
EXPOSE 5000
ENTRYPOINT ["dotnet", "YourApp.dll"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment