Spaces:
Running
Running
Download Dockerfile from NotRev/ThesisPlease: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/NotRev/ThesisPlease/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NotRev/ThesisPlease/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NotRev/ThesisPlease/resolve/main/Dockerfile
630 Bytes
| # Use a highly compatible Python version (3.10 is stable for ML libs) | |
| FROM python:3.10 | |
| WORKDIR /app | |
| # Install necessary system packages | |
| # No special sentencepiece/cmake tools needed here anymore | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy and install ALL dependencies | |
| COPY requirements.txt ./ | |
| # We use --no-cache-dir to prevent disk space issues | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application source code | |
| COPY src/ ./src/ | |
| EXPOSE 8501 | |
| ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] |