Fix Dockerfile

Fix AmneziaWG tools installation.
This commit is contained in:
tiaga 2024-02-13 21:44:41 +07:00
parent 52fed4d362
commit 92e28a0d14

View file

@ -8,7 +8,8 @@ RUN go mod download && \
FROM alpine:3.19
ARG AWGTOOLS_RELEASE="1.0.20240213"
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 alpine-3.19-amneziawg-tools.zip -d /usr/bin/ && \
unzip -j alpine-3.19-amneziawg-tools.zip && \
chmod +x /usr/bin/awg /usr/bin/awg-quick
COPY --from=awg /usr/bin/amneziawg-go /usr/bin/amneziawg-go