edit Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kamonwan taengsuk
2023-08-04 15:52:41 +07:00
parent 6e74a37a4d
commit 557e2dd8f5
18 changed files with 116 additions and 29 deletions

View File

@@ -1,11 +1,11 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3 as build-env
FROM registry.71dev.com/dotnetsdk:5.0 as build-env
WORKDIR /source
COPY . .
RUN dotnet restore --configfile nuget.config --disable-parallel
RUN dotnet build
RUN dotnet publish -o /publish --configuration Release;
FROM mcr.microsoft.com/dotnet/aspnet:3
FROM registry.71dev.com/dotnetsdk:5.0
COPY . .
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