- FROM playn/alpine as builder
 
- RUN apk add --no-cache git build-base linux-headers && \
 
-     git clone --depth 1 https://github.com/wangyu-/udp2raw-tunnel.git  && \
 
-     cd udp2raw-tunnel && \
 
-     make dynamic OPT=-DENABLE_DNS_RESOLVE
 
- FROM playn/alpine
 
- RUN apk add --no-cache libstdc++ iptables ip6tables
 
- COPY --from=builder /udp2raw-tunnel/udp2raw_dynamic /bin/udp2raw
 
- ENTRYPOINT [ "/bin/udp2raw" ]
 
 
  |