Backg / Dockerfile
taha454's picture
Update Dockerfile
30f0355 verified
raw
history blame contribute delete
524 Bytes
FROM python:3.11
WORKDIR /app
RUN useradd -m -u 1000 user
# ✅ System deps (THIS fixes libGL error)
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
# Install everything normally (no hacks)
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]