Download Dockerfile from Fred808/NAT3: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/Fred808/NAT3/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Fred808/NAT3/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Fred808/NAT3/resolve/main/Dockerfile
518 Bytes
| FROM ubuntu:22.04 | |
| RUN apt-get update && apt-get install -y \ | |
| openssh-server \ | |
| dante-server \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Create required dirs | |
| RUN mkdir -p /var/run/sshd | |
| # Copy configs with root access | |
| COPY ssh-config/sshd_config /etc/ssh/sshd_config | |
| RUN chmod 600 /etc/ssh/sshd_config | |
| # Set user to root (important!) | |
| # Copy rest of the app | |
| WORKDIR /app | |
| COPY . /app | |
| RUN chmod +x /app/entrypoint.sh | |
| RUN chmod -R 777 /app | |
| USER root | |
| EXPOSE 22 1080 | |
| ENTRYPOINT ["/app/entrypoint.sh"] | |