mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 18:32:08 +08:00
26 lines
647 B
Text
26 lines
647 B
Text
ARG NM_VERSION=
|
|
|
|
FROM gravitl/builder as builder
|
|
|
|
RUN apk add --update git build-base libmnl-dev iptables
|
|
|
|
WORKDIR /root/
|
|
RUN git clone https://git.zx2c4.com/wireguard-go && \
|
|
cd wireguard-go && \
|
|
make && \
|
|
make install
|
|
|
|
ENV WITH_WGQUICK=yes
|
|
RUN git clone https://git.zx2c4.com/wireguard-tools && \
|
|
cd wireguard-tools && \
|
|
cd src && \
|
|
make && \
|
|
make install
|
|
|
|
FROM gravitl/netmaker:${NM_VERSION}
|
|
|
|
RUN apk add --no-cache --update bash libmnl iptables openresolv iproute2
|
|
COPY --from=builder /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/
|
|
COPY scripts/netclient.sh ./entrypoint.sh
|
|
|
|
ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]
|