From d0b34bf22f58921bd1312c78e668bcea66c2224c Mon Sep 17 00:00:00 2001 From: GZTime Date: Tue, 13 Sep 2022 18:09:03 +0800 Subject: [PATCH] build: do not use alpine base --- Dockerfile | 2 +- GZCTF/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a3b61388e..ad997707b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ RUN dotnet build "CTFServer.csproj" -c Release -o /app/build --no-restore FROM build AS publish RUN dotnet publish "CTFServer.csproj" -c Release -o /app/publish -r linux-x64 --no-self-contained /p:PublishReadyToRun=true /p:UseNpm=true -FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS final +FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS final WORKDIR /app EXPOSE 80 COPY --from=publish /app/publish . diff --git a/GZCTF/Dockerfile b/GZCTF/Dockerfile index b07eafdd8..09018c7a9 100644 --- a/GZCTF/Dockerfile +++ b/GZCTF/Dockerfile @@ -1,9 +1,9 @@ -FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS build +FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS build ARG TARGETPLATFORM COPY publish /build RUN cp -r /build/${TARGETPLATFORM} /publish -FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS final +FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS final WORKDIR /app COPY --from=build /publish .