Spaces:
Sleeping

QuickDraw10 / Dockerfile
Jhun Brian Andam
Fix Streamlit port to 7860 for Hugging Face
8ae3905
Raw History Blame Contribute Delete
622 Bytes
# Use official Python image
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy project files
COPY . /app
# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Expose Streamlit port
EXPOSE 7860
# Run Streamlit app
CMD ["streamlit", "run", "quickdraw_app.py", "--server.port=7860", "--server.address=0.0.0.0"]