forked from activeeos/wireguard-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (31 loc) · 1017 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM alpine:3.8
# Modified version of https://github.com/jessfraz/dockerfiles/blob/master/wireguard/install/Dockerfile
LABEL maintainer "Rakshit Menpara <[email protected]>"
RUN apk add --no-cache \
bash \
build-base \
ca-certificates \
elfutils-libelf \
libelf-dev \
libmnl-dev \
openresolv \
iproute2 \
iputils \
procps \
grep
# https://git.zx2c4.com/WireGuard/refs/
ENV WIREGUARD_VERSION 0.0.20181018
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
git \
&& git clone --depth 1 --branch "${WIREGUARD_VERSION}" https://git.zx2c4.com/WireGuard.git /wireguard \
&& ( \
cd /wireguard/src \
&& make tools \
&& make -C tools install \
&& make -C tools clean \
) \
&& apk del .build-deps
COPY scripts/* /usr/local/bin/
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
CMD [ "/usr/local/bin/run.sh" ]