Download Dockerfile from saranka85/predictive-maintenance-engine-space: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/spaces/saranka85/predictive-maintenance-engine-space/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/saranka85/predictive-maintenance-engine-space/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/saranka85/predictive-maintenance-engine-space/resolve/main/Dockerfile
543 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV APP_HOST=0.0.0.0 | |
| ENV APP_PORT=7860 | |
| ENV HF_MODEL_REPO=saranka85/predictive-maintenance-random-forest | |
| ENV HF_MODEL_FILENAME=model.joblib | |
| ENV PREDICTION_LOG_DIR=/tmp/prediction_logs | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| COPY deployment_config.json . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"] | |