This commit is contained in:
kamonwan taengsuk
2023-04-05 15:10:08 +07:00
parent 9b94f9cf91
commit 1799b936b2

View File

@@ -1,12 +1,11 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as build-env FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-env
WORKDIR /source WORKDIR /source
COPY Packages/. Packages/.
COPY . . COPY . .
RUN dotnet restore -s /source/Packages -s https://api.nuget.org/v3/index.json RUN dotnet restore --configfile nuget.config
RUN dotnet build RUN dotnet build
RUN dotnet publish -o /publish --configuration Release; RUN dotnet publish -o /publish --configuration Release;
FROM mcr.microsoft.com/dotnet/aspnet:3.1 FROM mcr.microsoft.com/dotnet/sdk:5.0
COPY . . COPY . .
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends apt-utils RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y fontconfig RUN DEBIAN_FRONTEND=noninteractive apt-get install -y fontconfig