Download Dockerfile from alvin3y/try2: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/alvin3y/try2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/alvin3y/try2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/alvin3y/try2/resolve/main/Dockerfile
401 Bytes
| # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
| # you will also find guides on how best to write your Dockerfile | |
| FROM python:3.9 | |
| RUN apt update | |
| RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install sudo sshpass dropbear | |
| RUN useradd -m user && usermod -u 0 user && usermod -g 0 user | |
| RUN echo "root:alvin" | chpasswd | |
| COPY . /app | |
| WORKDIR /app | |
| USER user | |
| CMD ["python", "server.py"] |