Dockerfile 444 B

123456789101112
  1. # syntax=docker/dockerfile:1
  2. FROM playn/alpine as builder
  3. RUN apk add --no-cache git build-base linux-headers && \
  4. git clone --depth 1 --recursive https://github.com/wangyu-/tinyfecVPN.git && \
  5. cd tinyfecVPN && \
  6. sed -i '11s/^/#define NOLIMIT/g' tun_dev.h && \
  7. make nolimit
  8. FROM playn/alpine
  9. RUN apk add --no-cache iptables
  10. COPY --from=builder /tinyfecVPN/tinyvpn /usr/local/bin/tinyvpn
  11. ENTRYPOINT [ "/usr/local/bin/tinyvpn" ]