Run Crawlee using pupeteer in Docker

How to use Pupeteer crawler in docker: * Dockerfile: FROM node:16 WORKDIR /zserver/app COPY package*.json ./ ENV environment DEV RUN npm install COPY . . #EXPOSE 8080 CMD [ "node", "src/main.js"] * Error: node_modules/puppeteer/.local-chromium/linux-1011831/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory Thanks!
4 Replies
eastern-cyan
eastern-cyan3y ago
other-emerald
other-emeraldOP3y ago
I can not find any docs for this image
ambitious-aqua
ambitious-aqua3y ago
What do you mean by docs? Here is description of image: https://crawlee.dev/docs/guides/docker-images#actor-node-puppeteer-chrome And on the bottom of the page there is an example.
Running in Docker | Crawlee
Example Docker images to run your crawlers
other-emerald
other-emeraldOP3y ago
I can chown user in my dockerfile FROM apify/actor-node-playwright-chrome:16 COPY --chown=myuser package*.json ./ RUN npm --quiet set progress=false \ && npm install --omit=dev --omit=optional \ && echo "Installed NPM packages:" \ && (npm list --omit=dev --all || true) \ && echo "Node.js version:" \ && node --version \ && echo "NPM version:" \ && npm --version COPY --chown=myuser . ./ CMD npm start --silent why can not use root docker 1.13.1 using -chown error

Did you find this page helpful?