2019-07-13 10:49:22 +02:00
|
|
|
# stick to non-alpine so we can reuse build from travis host (avoid libc compat issues)
|
2019-09-30 23:17:10 +02:00
|
|
|
FROM golang:1.13
|
2019-07-12 11:08:41 +02:00
|
|
|
|
2019-07-13 11:05:48 +02:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt update \
|
|
|
|
&& apt install -y git make gcc \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2019-07-12 11:08:41 +02:00
|
|
|
RUN go get -d golang.zx2c4.com/wireguard \
|
|
|
|
&& cd /go/src/golang.zx2c4.com/wireguard \
|
|
|
|
&& rm donotuseon_linux.go \
|
|
|
|
&& make install
|
|
|
|
|
|
|
|
ENV WG_I_PREFER_BUGGY_USERSPACE_TO_POLISHED_KMOD=1
|
|
|
|
|
|
|
|
COPY entrypoint.sh /
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|