engine_cond_predict / Dockerfile
vihu21's picture
Upload folder using huggingface_hub
ddbd3c8 verified
raw
history blame
404 Bytes
FROM python:3.9-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# HF requires port 7860
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
WORKDIR /app
# Copy dependencies first
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . .
# Expose HF-required port
EXPOSE 7860
# Start Streamlit
CMD ["streamlit", "run", "app.py"]