From 02b0beb1999f914e484dcc2707c91a824b05cbe6 Mon Sep 17 00:00:00 2001 From: drkivi <115035277+drkivi@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:14:12 +0330 Subject: [PATCH] Update Dockerfile golang -> 1.23.6 AWGTOOLS -> 1.0.20241018 Signed-off-by: drkivi <115035277+drkivi@users.noreply.github.com> --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 590ec5a..88d9b13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22.3 as awg +FROM golang:1.23.6 as awg COPY . /awg WORKDIR /awg RUN go mod download && \ @@ -6,12 +6,10 @@ 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.20240213" +ARG AWGTOOLS_RELEASE="1.0.20241018" 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 && \ - 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 + chmod +x /usr/bin/awg /usr/bin/awg-quick COPY --from=awg /usr/bin/amneziawg-go /usr/bin/amneziawg-go