Rembg is a tool to remove images background
FROM python:3.11-slim
WORKDIR /rembg
RUN pip install --upgrade pip && \
pip install poetry poetry-dynamic-versioning
RUN apt-get update && apt-get install -y curl git && apt-get clean && rm -rf /var/lib/apt/lists/*
COPY . .
RUN poetry config virtualenvs.create false && \
poetry install --extras "cpu cli" --without dev
RUN rembg d bria-rmbg
EXPOSE 7000
ENTRYPOINT ["rembg"]
CMD ["--help"]