Spaces:
Sleeping
Sleeping
Download Dockerfile from shashidj/Predictive-Maintenance: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/shashidj/Predictive-Maintenance/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shashidj/Predictive-Maintenance/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shashidj/Predictive-Maintenance/resolve/main/Dockerfile
349 Bytes
| FROM python:3.10-slim | |
| WORKDIR /code | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN useradd -m appuser && chown -R appuser:appuser /code | |
| USER appuser | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |