Car-Bg-api / Dockerfile
Khan19970's picture
Update Dockerfile
b7684ee verified
raw
history blame contribute delete
386 Bytes
FROM python:3.9-slim
RUN apt-get update && apt-get install -y \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN python -c "from rembg import remove; print('rembg model pre-downloaded')" || true
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]