Spaces:
Runtime error
Runtime error
Download Dockerfile from iStillWaters/Engine-Reliability-Dashboard-v2: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/iStillWaters/Engine-Reliability-Dashboard-v2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/iStillWaters/Engine-Reliability-Dashboard-v2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/iStillWaters/Engine-Reliability-Dashboard-v2/resolve/main/Dockerfile
492 Bytes
| # Use a slim version of Python to save space | |
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy files | |
| COPY . /app | |
| # CRITICAL FIX: --no-cache-dir prevents OOM (Out of Memory) crashes | |
| # We also upgrade pip first to ensure compatibility | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Expose the port | |
| EXPOSE 8501 | |
| # Run the app | |
| CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"] |