Fix poetry cache (#2709)
Browse files### 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
- Dockerfile +2 -2
- Dockerfile.slim +2 -2
Dockerfile
CHANGED
@@ -56,9 +56,9 @@ COPY pyproject.toml poetry.toml poetry.lock ./
|
|
56 |
|
57 |
RUN --mount=type=cache,id=ragflow_builder_poetry,target=/root/.cache/pypoetry,sharing=locked \
|
58 |
if [ "$LIGHTEN" -eq 0 ]; then \
|
59 |
-
poetry install --sync --no-
|
60 |
else \
|
61 |
-
poetry install --sync --no-
|
62 |
fi
|
63 |
|
64 |
# production stage
|
|
|
56 |
|
57 |
RUN --mount=type=cache,id=ragflow_builder_poetry,target=/root/.cache/pypoetry,sharing=locked \
|
58 |
if [ "$LIGHTEN" -eq 0 ]; then \
|
59 |
+
poetry install --sync --no-root --with=full; \
|
60 |
else \
|
61 |
+
poetry install --sync --no-root; \
|
62 |
fi
|
63 |
|
64 |
# production stage
|
Dockerfile.slim
CHANGED
@@ -56,9 +56,9 @@ COPY pyproject.toml poetry.toml poetry.lock ./
|
|
56 |
|
57 |
RUN --mount=type=cache,id=ragflow_builder_poetry,target=/root/.cache/pypoetry,sharing=locked \
|
58 |
if [ "$LIGHTEN" -eq 0 ]; then \
|
59 |
-
poetry install --sync --no-
|
60 |
else \
|
61 |
-
poetry install --sync --no-
|
62 |
fi
|
63 |
|
64 |
# production stage
|
|
|
56 |
|
57 |
RUN --mount=type=cache,id=ragflow_builder_poetry,target=/root/.cache/pypoetry,sharing=locked \
|
58 |
if [ "$LIGHTEN" -eq 0 ]; then \
|
59 |
+
poetry install --sync --no-root --with=full; \
|
60 |
else \
|
61 |
+
poetry install --sync --no-root; \
|
62 |
fi
|
63 |
|
64 |
# production stage
|