
# Run everything after as non-privileged user.ĮNV PUPPETEER_EXECUTABLE_PATH "/usr/bin/google-chrome-unstable"ĬOPY bin/Release/netcoreapp2. & chown -R pptruser:pptruser /home/pptruser

RUN groupadd -r pptruser & useradd -r -g pptruser -G audio,video pptruser \ # same layer as npm install to keep re-chowned files from using up several hundred MBs more space # Add user, so we don't need -no-sandbox. & apt-get install -y /tmp/b -no-install-recommends -allow-downgrades fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \ # Uncomment to skip the chromium download when installing puppeteer. let uri 'data:text/csv charsetutf-8,' + encodeURIComponent(content) window. # uncomment the following lines to have `dumb-init` as PID 1 This page downloads a csv by creating a comma delimited string and forcing the browser to download it by setting the data type like so. do this by using the below command: dotnet add package PuppeteerSharp. # If running Docker >= 1.13.0 use docker run's -init arg to reap zombie processes, otherwise to use Puppeteer to download pdf Save PDF to File using puppeteerpuppeteer.

& apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \ & sh -c 'echo "deb stable main" > /etc/apt//google.list' \ # Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer # Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
