zhichyu commited on
Commit
1c2038a
·
1 Parent(s): 3925206

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

Files changed (2) hide show
  1. Dockerfile +2 -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-cache --no-root --with=full; \
60
  else \
61
- poetry install --sync --no-cache --no-root; \
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-cache --no-root --with=full; \
60
  else \
61
- poetry install --sync --no-cache --no-root; \
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