Skip to content

Commit

Permalink
fix(docker): add libpcap
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Aug 15, 2023
1 parent 9d13e1a commit 5d90148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV VITE_APP_GIT_NAME=$GIT_NAME
RUN apt update && \
apt install -y wget && \
apt install -y gnupg2 && \
wget -qO- https://deb.nodesource.com/setup_18.x | bash - && \
wget -qO- https://deb.nodesource.com/setup_20.x | bash - && \
apt install -y build-essential nodejs

RUN npm i -g pnpm
Expand All @@ -28,7 +28,7 @@ WORKDIR /app
EXPOSE 80

COPY --from=publish /app/publish .
RUN apt update && apt install -y wget && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y wget libpcap --no-install-recommends && rm -rf /var/lib/apt/lists/*

HEALTHCHECK --interval=5m --timeout=3s --start-period=10s --retries=1 \
CMD wget --no-verbose --tries=1 --spider http://localhost:80/healthz || exit 1
Expand Down
2 changes: 1 addition & 1 deletion src/GZCTF/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY --from=build /publish .

EXPOSE 80

RUN apt update && apt install -y wget --no-install-recommends && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y wget libpcap --no-install-recommends && rm -rf /var/lib/apt/lists/*
HEALTHCHECK --interval=5m --timeout=3s --start-period=10s --retries=1 \
CMD wget --no-verbose --tries=1 --spider http://localhost:80/healthz || exit 1

Expand Down

0 comments on commit 5d90148

Please sign in to comment.