Dockerfile.openwrt-amd64 666 B

1234567891011121314151617181920
  1. FROM openwrt/rootfs:x86-64 as builder
  2. COPY natter.py /opt/natter.py
  3. RUN mkdir -p /var/lock/ /var/run/ \
  4. && opkg update \
  5. && opkg install ca-certificates curl gzip iptables-legacy jq nftables python3 socat wget \
  6. && opkg remove 'kmod-*' --force-depends \
  7. && curl -L 'https://github.com/ginuerzh/gost/releases/download/v2.11.5/gost-linux-amd64-2.11.5.gz' | gunzip > /usr/bin/gost \
  8. && chmod a+x /usr/bin/gost \
  9. && chmod a+x /opt/natter.py
  10. ENV HOME /opt
  11. ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  12. ENV LANG C.UTF-8
  13. ENV LANGUAGE C.UTF-8
  14. ENV LC_ALL C.UTF-8
  15. ENTRYPOINT ["/opt/natter.py"]