Fix poetry cache (#2709)

### What problem does this PR solve?

Fix poetry cache

### Type of change

- [ ] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [x] Other (please describe): CI
This commit is contained in:
Zhichang Yu 2024-10-02 21:15:30 +08:00 committed by GitHub
parent 70c6b5a7f9
commit a1ffc7fa2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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