Skip to content

Commit bee37af

Browse files
authored
Merge pull request #640 from docat-org/fix/639-optimize-docker-build
Fix: Optimize Docker build
2 parents d449012 + b2e0047 commit bee37af

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# building frontend
2-
FROM node:20.5 as frontend
2+
FROM node:20-slim as frontend
33
WORKDIR /app/frontend
4-
COPY web ./
4+
5+
COPY web/package.json web/yarn.lock ./
6+
RUN yarn install --frozen-lockfile
57

68
# fix docker not following symlinks
9+
COPY web ./
710
COPY doc/getting-started.md ./src/assets/
8-
9-
RUN yarn install --frozen-lockfile
1011
RUN yarn build
1112

1213
# setup Python

0 commit comments

Comments
 (0)