Files
Natter/natter-docker/Dockerfile.debian-amd64
2025-10-09 04:51:15 +08:00

21 lines
709 B
Docker

ARG ARCH=amd64
FROM --platform=linux/${ARCH} amd64/debian:13
COPY natter.py /opt/natter.py
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl gzip iptables jq nftables python3 socat wget \
&& update-alternatives --set iptables /usr/sbin/iptables-legacy \
&& curl -fL 'https://github.com/go-gost/gost/releases/download/v3.2.4/gost_3.2.4_linux_amd64.tar.gz' | tar -xzO gost > /usr/bin/gost \
&& chmod a+x /usr/bin/gost \
&& chmod a+x /opt/natter.py
ENV HOME /opt
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
ENTRYPOINT ["/opt/natter.py"]