Spaces:
Runtime error
Runtime error
Download Dockerfile from ShaksML/predictive_maintenance_data: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/ShaksML/predictive_maintenance_data/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ShaksML/predictive_maintenance_data/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ShaksML/predictive_maintenance_data/resolve/main/Dockerfile
407 Bytes
| # Use a minimal base image with Python 3.9 installed | |
| FROM python:3.9 | |
| WORKDIR /app | |
| COPY . . | |
| RUN pip3 install -r requirements.txt | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| CMD ["streamlit", "run", "dt_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"] | |