Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

405 B
Raw Blame
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"]