Spaces:
Runtime error
Runtime error
Download Dockerfile from DingShinn/docker-test: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/DingShinn/docker-test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DingShinn/docker-test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DingShinn/docker-test/resolve/main/Dockerfile
415 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| # 添加一个名为 ding 的 user 并且给它全部的权限 | |
| RUN useradd -m -u 1000 ding && chown -R ding /code | |
| USER ding | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| ENV HOME=/home/ding \ | |
| PATH=/home/ding/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=ding . $HOME/app | |
| EXPOSE 8501 | |
| CMD streamlit run app.py |