From f7ab1f334f50e3f828864d1dad1e125781e00b3d Mon Sep 17 00:00:00 2001
From: Mark Puha
Date: Fri, 4 Jul 2025 13:38:28 +0200
Subject: [PATCH] chore: update awg-tool version
---
Dockerfile | 20 +++-----------------
1 file changed, 3 insertions(+), 17 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 6d60440..5b2ca26 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,25 +6,11 @@ RUN go mod download && \
go build -ldflags '-linkmode external -extldflags "-fno-PIC -static"' -v -o /usr/bin
FROM alpine:3.19
-ARG AWGTOOLS_RELEASE="1.0.20241018"
-
-RUN apk add linux-headers build-base
-COPY awg-tools /awg-tools
-RUN pwd && ls -la / && ls -la /awg-tools
-WORKDIR /awg-tools/src
-# RUN ls -la && pwd && ls awg-tools
-RUN make
-RUN mkdir -p build && \
- cp wg ./build/awg && \
- cp wg-quick/linux.bash ./build/awg-quick
-
-RUN cp build/awg /usr/bin/awg
-RUN cp build/awg-quick /usr/bin/awg-quick
-
+ARG AWGTOOLS_RELEASE="1.0.20250704"
RUN apk --no-cache add iproute2 iptables bash && \
cd /usr/bin/ && \
- # wget https://github.com/amnezia-vpn/amneziawg-tools/releases/download/v${AWGTOOLS_RELEASE}/alpine-3.19-amneziawg-tools.zip && \
- # unzip -j alpine-3.19-amneziawg-tools.zip && \
+ wget https://github.com/amnezia-vpn/amneziawg-tools/releases/download/v${AWGTOOLS_RELEASE}/alpine-3.19-amneziawg-tools.zip && \
+ unzip -j alpine-3.19-amneziawg-tools.zip && \
chmod +x /usr/bin/awg /usr/bin/awg-quick && \
ln -s /usr/bin/awg /usr/bin/wg && \
ln -s /usr/bin/awg-quick /usr/bin/wg-quick