mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-05 04:34:30 +08:00
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.
14 lines
307 B
Text
14 lines
307 B
Text
#first stage - builder
|
|
FROM alpine:3.21.3
|
|
ARG version
|
|
WORKDIR /app
|
|
COPY ./netmaker /root/netmaker
|
|
ENV GO111MODULE=auto
|
|
|
|
# add a c lib
|
|
RUN apk add --no-cache gcompat iptables wireguard-tools
|
|
# set the working directory
|
|
WORKDIR /root/
|
|
RUN mkdir -p /etc/netclient/config
|
|
EXPOSE 8081
|
|
ENTRYPOINT ["./netmaker"]
|