saranka85's picture
Upload folder using huggingface_hub
9a7106b verified
Raw
History Blame Contribute Delete
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"]