Simplify and unify apk usage in Dockerfiles (#3407)

Replace `apk update` and `--update` flags with `--no-cache` across
Dockerfiles to improve consistency and eliminate unnecessary cache files.

This change reduces image size and ensures up-to-date package indices
without leaving temporary data. It also aligns with best practices
recommended for Alpine-based Docker images.
This commit is contained in:
Peter Dave Hello
2025-04-30 06:55:34 +08:00
committed by GitHub
parent 8c3065482a
commit 105b7dfc1c
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ COPY ./netmaker /root/netmaker
ENV GO111MODULE=auto
# add a c lib
RUN apk add gcompat iptables wireguard-tools
RUN apk add --no-cache gcompat iptables wireguard-tools
# set the working directory
WORKDIR /root/
RUN mkdir -p /etc/netclient/config