Download Dockerfile from avatar2102/engine-predictive-maintenance-app: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/spaces/avatar2102/engine-predictive-maintenance-app/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/avatar2102/engine-predictive-maintenance-app/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/avatar2102/engine-predictive-maintenance-app/resolve/main/Dockerfile
369 Bytes
| FROM python:3.9 | |
| WORKDIR /app | |
| COPY . /app | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"] | |