Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
optimize dockerfile a tiny bit
Browse files Browse the repository at this point in the history
  • Loading branch information
CelestialCrafter committed Oct 20, 2023
1 parent 09a1d7b commit 397d307
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
@@ -1,7 +1,8 @@
FROM node:lts
WORKDIR /app
COPY . .
COPY yarn.lock .
RUN yarn
COPY . .
RUN yarn build

RUN ls | grep -xvE "build|node_modules|package.json" | xargs rm -rf
Expand Down

0 comments on commit 397d307

Please sign in to comment.