Skip to content

Commit

Permalink
fix: add ca-certificates for alpine (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker authored Apr 16, 2024
1 parent d9c1192 commit 99d4ca6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
5 changes: 3 additions & 2 deletions src/GZCTF/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 99d4ca6

Please sign in to comment.