mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-16 22:16:55 +02:00
- rename `wg` and `wg-quick` to `awg` and `awg-quick` accordingly - add iptables - update AmneziaWG tools version
14 lines
588 B
Docker
14 lines
588 B
Docker
FROM golang:1.20 as awg
|
|
COPY . /awg
|
|
WORKDIR /awg
|
|
RUN go mod download && \
|
|
go mod verify && \
|
|
go build -ldflags '-linkmode external -extldflags "-fno-PIC -static"' -v -o /usr/bin
|
|
|
|
FROM alpine:3.19
|
|
ARG AWGTOOLS_RELEASE="1.0.20240213"
|
|
RUN apk --no-cache add iproute2 iptables bash && \
|
|
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/ && \
|
|
chmod +x /usr/bin/awg /usr/bin/awg-quick
|
|
COPY --from=awg /usr/bin/amneziawg-go /usr/bin/amneziawg-go
|