Dockerfile.debian-amd64 657 B

12345678910111213141516171819
  1. FROM amd64/debian
  2. COPY natter.py /opt/natter.py
  3. RUN apt-get update \
  4. && apt-get install -y --no-install-recommends ca-certificates curl gzip iptables jq nftables python3 socat wget \
  5. && update-alternatives --set iptables /usr/sbin/iptables-legacy \
  6. && curl -L 'https://github.com/ginuerzh/gost/releases/download/v2.11.5/gost-linux-amd64-2.11.5.gz' | gunzip > /usr/bin/gost \
  7. && chmod a+x /usr/bin/gost \
  8. && chmod a+x /opt/natter.py
  9. ENV HOME /opt
  10. ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  11. ENV LANG C.UTF-8
  12. ENV LANGUAGE C.UTF-8
  13. ENV LC_ALL C.UTF-8
  14. ENTRYPOINT ["/opt/natter.py"]