Skip to content

Commit 1abd24b

Browse files
authored
Merge pull request WireGuard#85 from amnezia-vpn/hotfix/docker-script
fix: restore Dockerfile changes
2 parents c207898 + 3f19f1c commit 1abd24b

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

Dockerfile

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,10 @@ RUN go mod download && \
88
FROM alpine:3.19
99
ARG AWGTOOLS_RELEASE="1.0.20241018"
1010

11-
RUN apk add linux-headers build-base
12-
COPY awg-tools /awg-tools
13-
RUN pwd && ls -la / && ls -la /awg-tools
14-
WORKDIR /awg-tools/src
15-
# RUN ls -la && pwd && ls awg-tools
16-
RUN make
17-
RUN mkdir -p build && \
18-
cp wg ./build/awg && \
19-
cp wg-quick/linux.bash ./build/awg-quick
20-
21-
RUN cp build/awg /usr/bin/awg
22-
RUN cp build/awg-quick /usr/bin/awg-quick
23-
2411
RUN apk --no-cache add iproute2 iptables bash && \
2512
cd /usr/bin/ && \
26-
# wget https://github.com/amnezia-vpn/amneziawg-tools/releases/download/v${AWGTOOLS_RELEASE}/alpine-3.19-amneziawg-tools.zip && \
27-
# unzip -j alpine-3.19-amneziawg-tools.zip && \
13+
wget https://github.com/amnezia-vpn/amneziawg-tools/releases/download/v${AWGTOOLS_RELEASE}/alpine-3.19-amneziawg-tools.zip && \
14+
unzip -j alpine-3.19-amneziawg-tools.zip && \
2815
chmod +x /usr/bin/awg /usr/bin/awg-quick && \
2916
ln -s /usr/bin/awg /usr/bin/wg && \
3017
ln -s /usr/bin/awg-quick /usr/bin/wg-quick

0 commit comments

Comments
 (0)