Skip to content

Commit

Permalink
Reduce layer size for npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
Centurix committed Jan 23, 2025
1 parent 2dfd29b commit 34ce65b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ RUN curl -sSL https://pdm.fming.dev/install-pdm.py | python3 - && \
# Build frontend
RUN cd src/traffcap/spa && \
npm install && \
npm run build
npm run build && \
rm -rf node_modules

WORKDIR /traffcap/src

Expand Down

0 comments on commit 34ce65b

Please sign in to comment.