Rembg is a tool to remove images background
fix dockerfile
Daniel Gatis7c8b4bff1ffa
diff --git a/.dockerignore b/.dockerignoreindex ec7807b..8930a80 100644--- a/.dockerignore+++ b/.dockerignore@@ -1,10 +1,7 @@*!rembg-!setup.py-!setup.cfg-!requirements.txt-!requirements-cpu.txt-!requirements-gpu.txt-!versioneer.py+!pyproject.toml+!poetry.lock!README.md+!.git.envdiff --git a/Dockerfile b/Dockerfileindex ba09752..a5f35cb 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,14 +1,17 @@-FROM python:3.10-slim+FROM python:3.11-slimWORKDIR /rembg-RUN pip install --upgrade pip+RUN pip install --upgrade pip && \+ pip install poetry poetry-dynamic-versioning-RUN apt-get update && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*+RUN apt-get update && apt-get install -y curl git && apt-get clean && rm -rf /var/lib/apt/lists/*COPY . .-RUN python -m pip install ".[cpu,cli]"+RUN poetry config virtualenvs.create false && \+ poetry install --extras "cpu cli" --without dev+RUN rembg d u2netEXPOSE 7000