Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use texei:sharingcalc commands on a alpine based docker image #59

Open
nvuillam opened this issue Apr 11, 2021 · 1 comment
Open

Use texei:sharingcalc commands on a alpine based docker image #59

nvuillam opened this issue Apr 11, 2021 · 1 comment

Comments

@nvuillam
Copy link
Contributor

I post here just in case someone has the same issue :) (maybe it can be added in documentation)

Default puppeteer embedded chromium does not work on alpine, so to bypass that, the following env variables must be set, and chromium must be installed using apk

RUN apk add --update --no-cache \
            chromium \
            nodejs \
            npm

# Do not use puppeteer embedded chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
ENV CHROMIUM_PATH="/usr/bin/chromium-browser"
ENV PUPPETEER_EXECUTABLE_PATH="${CHROMIUM_PATH}"

cf: puppeteer/puppeteer#3994 (comment)

@FabienTaillon
Copy link
Member

Thanks for the tips, we definitely need to document that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants