bgremove / Dockerfile
andevs's picture
Update Dockerfile
40e7168 verified
Raw
History Blame Contribute Delete
497 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
# Create necessary temp directories
RUN mkdir -p /tmp/uploads /tmp/outputs /tmp/frames /tmp/u2net_models
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--timeout-keep-alive", "300"]