diff --git a/Dockerfile b/Dockerfile index a064e01e6..235473f75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,9 +56,9 @@ COPY pyproject.toml poetry.toml poetry.lock ./ RUN --mount=type=cache,id=ragflow_builder_poetry,target=/root/.cache/pypoetry,sharing=locked \ if [ "$LIGHTEN" -eq 0 ]; then \ - poetry install --sync --no-cache --no-root --with=full; \ + poetry install --sync --no-root --with=full; \ else \ - poetry install --sync --no-cache --no-root; \ + poetry install --sync --no-root; \ fi # production stage diff --git a/Dockerfile.slim b/Dockerfile.slim index a1015045e..6a656d5d4 100644 --- a/Dockerfile.slim +++ b/Dockerfile.slim @@ -56,9 +56,9 @@ COPY pyproject.toml poetry.toml poetry.lock ./ RUN --mount=type=cache,id=ragflow_builder_poetry,target=/root/.cache/pypoetry,sharing=locked \ if [ "$LIGHTEN" -eq 0 ]; then \ - poetry install --sync --no-cache --no-root --with=full; \ + poetry install --sync --no-root --with=full; \ else \ - poetry install --sync --no-cache --no-root; \ + poetry install --sync --no-root; \ fi # production stage