Spaces:
Running
Running
Download Dockerfile from victor/test-docker: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/victor/test-docker/resolve/refs%2Fpr%2F1/Dockerfile
- Command line
-
hf download hf://spaces/victor/test-docker@refs/pr/1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/victor/test-docker/resolve/refs%2Fpr%2F1/Dockerfile
326 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt update && apt install -y openssh-server | |
| RUN mkdir /var/run/sshd | |
| RUN echo 'root:root' | chpasswd | |
| RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| CMD ["bash","/start.sh"] |