Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created January 31, 2020 01:18
Embed
What would you like to do?
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as sdk
WORKDIR /code
COPY . .
RUN dotnet publish -c Release -o output
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 as runtime
WORKDIR /app
COPY --from=sdk /code/output .
RUN mkdir /image_write
ENV OutputDirectory /image_write
EXPOSE 80
ENTRYPOINT [ "dotnet", "FileUpload.dll" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment