Skip to content

Commit

Permalink
Reduce Docker image size 20 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
ngosang committed Aug 1, 2021
1 parent 232ddca commit 2a4fae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -22,8 +22,8 @@ ENV PUPPETEER_PRODUCT=chrome \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
RUN npm install && \
npm run build && \
rm -rf src tsconfig.json && \
npm prune --production
npm prune --production && \
rm -rf /home/node/.npm

EXPOSE 8191
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
Expand Down

0 comments on commit 2a4fae3

Please sign in to comment.