mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2026-04-17 13:35:36 +02:00
Reduce Docker image size 20 MB
This commit is contained in:
@@ -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", "--"]
|
||||
|
||||
Reference in New Issue
Block a user