Skip to content

Commit

Permalink
Merge pull request #640 from docat-org/fix/639-optimize-docker-build
Browse files Browse the repository at this point in the history
Fix: Optimize Docker build
  • Loading branch information
reglim authored Oct 3, 2023
2 parents d449012 + b2e0047 commit bee37af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# building frontend
FROM node:20.5 as frontend
FROM node:20-slim as frontend
WORKDIR /app/frontend
COPY web ./

COPY web/package.json web/yarn.lock ./
RUN yarn install --frozen-lockfile

# fix docker not following symlinks
COPY web ./
COPY doc/getting-started.md ./src/assets/

RUN yarn install --frozen-lockfile
RUN yarn build

# setup Python
Expand Down

0 comments on commit bee37af

Please sign in to comment.