Download Dockerfile from Fred808/NAT: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/spaces/Fred808/NAT/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Fred808/NAT/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Fred808/NAT/resolve/main/Dockerfile
477 Bytes
| FROM ubuntu:22.04 | |
| RUN apt-get update && apt-get install -y \ | |
| openssh-server \ | |
| dante-server \ | |
| iptables \ | |
| iproute2 \ | |
| net-tools \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Configure SSH | |
| RUN mkdir -p /var/run/sshd | |
| RUN useradd -m -s /bin/bash tunneluser | |
| # Enable IP forwarding in /etc/sysctl.conf | |
| RUN echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf | |
| RUN sysctl -p | |
| WORKDIR /app | |
| COPY . /app | |
| RUN chmod +x entrypoint.sh | |
| ENTRYPOINT ["./entrypoint.sh"] | |