Skip to content

Commit

Permalink
Move the cache of puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Jan 22, 2025
1 parent dda4085 commit a9cadc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if [ ${DEV_IMAGE} = false ] && echo ${TEXLIVE_TAG} | { ! grep -q latest-minimal;
then
apt-get -qy install --no-install-recommends ${PRODUCTION_DEPENDENCIES}
npm install -g @mermaid-js/mermaid-cli
sed -i "s/headless: 'shell'/&, args: ['--no-sandbox']/" /usr/local/lib/node_modules/@mermaid-js/mermaid-cli/src/index.js
sed -i "s/headless: 'shell'/&, cacheDirectory: '/puppeteer_cache', args: ['--no-sandbox']/" /usr/local/lib/node_modules/@mermaid-js/mermaid-cli/src/index.js
fi

# Update packages in non-historic TeX Live versions
Expand Down Expand Up @@ -219,7 +219,7 @@ elif echo ${TEXLIVE_TAG} | { ! grep -q latest-minimal; }
then
apt-get -qy install --no-install-recommends ${PRODUCTION_DEPENDENCIES}
npm install -g @mermaid-js/mermaid-cli
sed -i "s/headless: 'shell'/&, args: ['--no-sandbox']/" /usr/local/lib/node_modules/@mermaid-js/mermaid-cli/src/index.js
sed -i "s/headless: 'shell'/&, cacheDirectory: '/puppeteer_cache', args: ['--no-sandbox']/" /usr/local/lib/node_modules/@mermaid-js/mermaid-cli/src/index.js
fi
apt-get -qy autoclean
apt-get -qy clean
Expand Down

0 comments on commit a9cadc4

Please sign in to comment.