Skip to content

Commit

Permalink
build: do not use alpine base
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 13, 2022
1 parent fd748e7 commit d0b34bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
4 changes: 2 additions & 2 deletions GZCTF/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .

Expand Down

0 comments on commit d0b34bf

Please sign in to comment.