Download Dockerfile from gtech13/Topic-Modeling-BERTopic-Math-Visualization: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/spaces/gtech13/Topic-Modeling-BERTopic-Math-Visualization/resolve/fa8cc7d786a8c987fd3007eb7f3c086b929baf2c/Dockerfile
- Command line
-
hf download hf://spaces/gtech13/Topic-Modeling-BERTopic-Math-Visualization@fa8cc7d786a8c987fd3007eb7f3c086b929baf2c/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gtech13/Topic-Modeling-BERTopic-Math-Visualization/resolve/fa8cc7d786a8c987fd3007eb7f3c086b929baf2c/Dockerfile
602 Bytes
| FROM python:3.10 | |
| # 1. Create the specific user required by Hugging Face Spaces | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| ENV HOME="/home/user" | |
| # 2. Set the working directory to that user's safe space | |
| WORKDIR $HOME/app | |
| # 3. Copy requirements and install them | |
| COPY --chown=user:user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 4. Copy your app.py and images into the safe space | |
| COPY --chown=user:user . . | |
| # 5. Launch Streamlit | |
| CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"] |