Kevin Hu
commited on
Commit
·
f5be28c
1
Parent(s):
d55a6be
revert error in Dockerfile (#2581)
Browse files### What problem does this PR solve?
#2295
### Type of change
- [x] Refactoring
- Dockerfile.scratch +4 -3
Dockerfile.scratch
CHANGED
@@ -33,7 +33,7 @@ USER root
|
|
33 |
WORKDIR /ragflow
|
34 |
|
35 |
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
36 |
-
apt update && apt install -y nodejs npm && \
|
37 |
rm -rf /var/lib/apt/lists/*
|
38 |
|
39 |
COPY web web
|
@@ -41,8 +41,7 @@ RUN cd web && npm i --force && npm run build
|
|
41 |
|
42 |
# install dependencies from poetry.lock file
|
43 |
COPY pyproject.toml poetry.toml poetry.lock ./
|
44 |
-
RUN --mount=type=cache,target=/root/.cache/pypoetry,sharing=locked
|
45 |
-
/root/.local/bin/poetry lock
|
46 |
|
47 |
RUN --mount=type=cache,target=/root/.cache/pypoetry,sharing=locked \
|
48 |
/root/.local/bin/poetry install --sync --no-cache --no-root
|
@@ -79,6 +78,8 @@ ENV PATH="${VIRTUAL_ENV}/bin:/root/.local/bin:${PATH}"
|
|
79 |
# Download nltk data
|
80 |
RUN python3 -m nltk.downloader wordnet punkt punkt_tab
|
81 |
|
|
|
|
|
82 |
|
83 |
ENV PYTHONPATH=/ragflow/
|
84 |
|
|
|
33 |
WORKDIR /ragflow
|
34 |
|
35 |
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
36 |
+
apt update && apt install -y nodejs npm cargo && \
|
37 |
rm -rf /var/lib/apt/lists/*
|
38 |
|
39 |
COPY web web
|
|
|
41 |
|
42 |
# install dependencies from poetry.lock file
|
43 |
COPY pyproject.toml poetry.toml poetry.lock ./
|
44 |
+
RUN --mount=type=cache,target=/root/.cache/pypoetry,sharing=locked
|
|
|
45 |
|
46 |
RUN --mount=type=cache,target=/root/.cache/pypoetry,sharing=locked \
|
47 |
/root/.local/bin/poetry install --sync --no-cache --no-root
|
|
|
78 |
# Download nltk data
|
79 |
RUN python3 -m nltk.downloader wordnet punkt punkt_tab
|
80 |
|
81 |
+
# Copy models downloaded via download_deps.sh
|
82 |
+
COPY det.onnx layout.laws.onnx layout.manual.onnx layout.onnx layout.paper.onnx ocr.res rec.onnx tsr.onnx updown_concat_xgb.model /ragflow/rag/res/deepdoc/
|
83 |
|
84 |
ENV PYTHONPATH=/ragflow/
|
85 |
|