remove-bg-api / Dockerfile
habulaj's picture
Update Dockerfile
994f645 verified
raw
history blame contribute delete
475 Bytes
FROM python:3.9-slim
WORKDIR /app
# Cria o diretório de cache e define permissões
RUN mkdir -p /tmp/u2net && chmod 777 /tmp/u2net
# Instala dependências do sistema
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
llvm \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"]