|
@@ -10,7 +10,7 @@ RUN GOOS=linux CGO_ENABLED=0 /usr/local/go/bin/go build -ldflags="-w -s" -o netc
|
|
|
|
|
|
WORKDIR /root/
|
|
|
|
|
|
-RUN apk add --update git build-base libmnl-dev iptables
|
|
|
+RUN apk add --no-cache git build-base libmnl-dev iptables
|
|
|
|
|
|
RUN git clone https://git.zx2c4.com/wireguard-go && \
|
|
|
cd wireguard-go && \
|
|
@@ -28,7 +28,7 @@ FROM alpine:3.16.2
|
|
|
|
|
|
WORKDIR /root/
|
|
|
|
|
|
-RUN apk add --no-cache --update bash libmnl gcompat iptables openresolv iproute2
|
|
|
+RUN apk add --no-cache bash libmnl gcompat iptables openresolv iproute2
|
|
|
COPY --from=builder /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/
|
|
|
COPY --from=builder /app/netclient-app ./netclient
|
|
|
COPY --from=builder /app/scripts/netclient.sh .
|