| 123456789101112131415161718192021222324252627 | ARG NC_VERSION=FROM gravitl/builder as builderRUN apk add --update git build-base libmnl-dev iptablesWORKDIR /root/RUN git clone https://git.zx2c4.com/wireguard-go && \    cd wireguard-go && \    make && \    make installENV WITH_WGQUICK=yesRUN git clone https://git.zx2c4.com/wireguard-tools && \    cd wireguard-tools && \    cd src && \    make && \    make installFROM gravitl/netclient:${NC_VERSION}RUN apk add --no-cache --update bash libmnl iptables openresolv iproute2 && cp /etc/netclient/netclient /root/netclientCOPY --from=builder /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/COPY scripts/netclient-userspace-entrypoint.sh ./entrypoint.shENTRYPOINT ["/bin/sh", "./entrypoint.sh"]
 |