From 99d4ca686bb123216d779dd2e7fd6382a950ab8b Mon Sep 17 00:00:00 2001 From: GZTime Date: Tue, 16 Apr 2024 14:46:33 +0800 Subject: [PATCH] fix: add ca-certificates for alpine (#269) --- src/Dockerfile | 5 +++-- src/GZCTF/Dockerfile | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Dockerfile b/src/Dockerfile index c069bea9d..8670ea324 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -28,11 +28,12 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \ WORKDIR /app EXPOSE 8080 -RUN apk add --no-cache wget libpcap icu-data-full icu-libs +RUN apk add --no-cache wget libpcap icu-data-full icu-libs ca-certificates && \ + update-ca-certificates COPY --from=publish /app/publish . HEALTHCHECK --interval=5m --timeout=3s --start-period=10s --retries=1 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1 + CMD wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1 ENTRYPOINT ["dotnet", "GZCTF.dll"] diff --git a/src/GZCTF/Dockerfile b/src/GZCTF/Dockerfile index 0acb35862..d0f47593f 100644 --- a/src/GZCTF/Dockerfile +++ b/src/GZCTF/Dockerfile @@ -10,11 +10,12 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \ WORKDIR /app EXPOSE 8080 -RUN apk add --no-cache wget libpcap icu-data-full icu-libs +RUN apk add --no-cache wget libpcap icu-data-full icu-libs ca-certificates && \ + update-ca-certificates COPY --from=build /publish . HEALTHCHECK --interval=5m --timeout=3s --start-period=10s --retries=1 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1 + CMD wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1 ENTRYPOINT ["dotnet", "GZCTF.dll"]