Download Dockerfile from AnubhaParashar/Predictive_Preventive_Maintenance_for_Generator_Reliability: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/spaces/AnubhaParashar/Predictive_Preventive_Maintenance_for_Generator_Reliability/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AnubhaParashar/Predictive_Preventive_Maintenance_for_Generator_Reliability/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AnubhaParashar/Predictive_Preventive_Maintenance_for_Generator_Reliability/resolve/main/Dockerfile
562 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_NO_CACHE_DIR=1 | |
| ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| curl \ | |
| && 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", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--browser.gatherUsageStats=false"] | |