Download Dockerfile from pardhas133/Predictive_maintaimce: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/spaces/pardhas133/Predictive_maintaimce/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pardhas133/Predictive_maintaimce/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pardhas133/Predictive_maintaimce/resolve/main/Dockerfile
488 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| # Install system dependencies (if needed for some Python packages) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "src/app.py", "--server.port", "7860", "--server.address", "0.0.0.0"] | |