Dockerfile-userspace 647 B

1234567891011121314151617181920212223242526
  1. ARG NM_VERSION=
  2. FROM gravitl/builder as builder
  3. RUN apk add --update git build-base libmnl-dev iptables
  4. WORKDIR /root/
  5. RUN git clone https://git.zx2c4.com/wireguard-go && \
  6. cd wireguard-go && \
  7. make && \
  8. make install
  9. ENV WITH_WGQUICK=yes
  10. RUN git clone https://git.zx2c4.com/wireguard-tools && \
  11. cd wireguard-tools && \
  12. cd src && \
  13. make && \
  14. make install
  15. FROM gravitl/netmaker:${NM_VERSION}
  16. RUN apk add --no-cache --update bash libmnl iptables openresolv iproute2
  17. COPY --from=builder /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/
  18. COPY scripts/netclient.sh ./entrypoint.sh
  19. ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]