shiue20's picture
Update Dockerfile
538a324 verified
raw
history blame contribute delete
365 Bytes
FROM python:3.10-slim
WORKDIR /code
# System dependencies
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# App source code
COPY . .
# Expose for HF Spaces
ENV PORT 7860
CMD ["python", "app.py"]