Fixed docker build (#2881)
Browse files### What problem does this PR solve?
Fixed docker build
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
- Dockerfile +1 -0
- Dockerfile.slim +1 -0
Dockerfile
CHANGED
@@ -48,6 +48,7 @@ RUN --mount=type=cache,id=ragflow_builder_apt,target=/var/cache/apt,sharing=lock
|
|
48 |
rm -rf /var/lib/apt/lists/*
|
49 |
|
50 |
COPY web web
|
|
|
51 |
RUN --mount=type=cache,id=ragflow_builder_npm,target=/root/.npm,sharing=locked \
|
52 |
cd web && npm i --force && npm run build
|
53 |
|
|
|
48 |
rm -rf /var/lib/apt/lists/*
|
49 |
|
50 |
COPY web web
|
51 |
+
COPY api api
|
52 |
RUN --mount=type=cache,id=ragflow_builder_npm,target=/root/.npm,sharing=locked \
|
53 |
cd web && npm i --force && npm run build
|
54 |
|
Dockerfile.slim
CHANGED
@@ -47,6 +47,7 @@ RUN --mount=type=cache,id=ragflow_builder_apt,target=/var/cache/apt,sharing=lock
|
|
47 |
rm -rf /var/lib/apt/lists/*
|
48 |
|
49 |
COPY web web
|
|
|
50 |
RUN --mount=type=cache,id=ragflow_builder_npm,target=/root/.npm,sharing=locked \
|
51 |
cd web && npm i --force && npm run build
|
52 |
|
|
|
47 |
rm -rf /var/lib/apt/lists/*
|
48 |
|
49 |
COPY web web
|
50 |
+
COPY api api
|
51 |
RUN --mount=type=cache,id=ragflow_builder_npm,target=/root/.npm,sharing=locked \
|
52 |
cd web && npm i --force && npm run build
|
53 |
|