mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-16 22:16:55 +02:00
Update Dockerfile
golang -> 1.23.6 AWGTOOLS -> 1.0.20241018 Signed-off-by: drkivi <115035277+drkivi@users.noreply.github.com>
This commit is contained in:
parent
b9ad11620b
commit
02b0beb199
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue