Skip to content

Commit

Permalink
Exclude client/node_modules/ from Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
nanawel committed Apr 21, 2024
1 parent e24ca38 commit 3e6fb70
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 @@ -13,7 +13,8 @@ COPY ./client/ /app/client

RUN cd /app/client \
&& yarn install \
&& NODE_ENV=production yarn build
&& NODE_ENV=production yarn build \
&& rm -rf /app/client/node_modules

FROM node:${node_version}${node_variant}

Expand Down

0 comments on commit 3e6fb70

Please sign in to comment.