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