2019-12-08 16:21:53 +03:00
|
|
|
################################################################################
|
|
|
|
# Build Environment
|
|
|
|
################################################################################
|
2020-07-19 16:09:00 +03:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
|
2019-12-08 16:21:53 +03:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# set up the contents
|
|
|
|
RUN mkdir packages
|
2020-07-19 16:09:00 +03:00
|
|
|
COPY . .
|
2019-12-08 16:21:53 +03:00
|
|
|
|
|
|
|
# build and publish
|
|
|
|
RUN dotnet publish -c Release -o /app/out
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Run Environment
|
|
|
|
################################################################################
|
2020-07-19 16:09:00 +03:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/runtime:3.1
|
2019-12-08 16:21:53 +03:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# copy from the build environment
|
|
|
|
COPY --from=build-env /app/out .
|
|
|
|
|
|
|
|
# run
|
|
|
|
ENTRYPOINT [ "dotnet", "SkiaSharpSample.dll" ]
|