Spaces:
Runtime error
Runtime error
Download Dockerfile from HuguesdeF/moulinette: direct link, hf CLI and curl.
- Browser
- Download file 755 Bytes
-
https://huggingface.co/spaces/HuguesdeF/moulinette/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HuguesdeF/moulinette/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HuguesdeF/moulinette/resolve/main/Dockerfile
755 Bytes
| FROM python:3.9-slim | |
| EXPOSE 7860 | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| software-properties-common \ | |
| git \ | |
| libcairo2 \ | |
| libcairo2-dev \ | |
| imagemagick \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/moulinette | |
| RUN mkdir $HOME/moulinette/images | |
| COPY --chown=user . $HOME/moulinette | |
| RUN echo $(ls -1 .. ) | |
| RUN pip3 install -r requirements.txt | |
| # For Windows Docker execution, uncomment below: | |
| #ENTRYPOINT ["streamlit", "run", "Corriger.py", "--server.port=8501", "--server.address=0.0.0.0"] | |
| # For HuggingFace execution, uncommment below: | |
| ENTRYPOINT ["streamlit", "run", "Corriger.py", "--server.port=7860"] | |