My DockerFile looks - FROM --platform=linux/amd64 node:20
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true ENV PUPPETEER_SKIP_DOWNLOAD true
RUN apt-get update && apt-get install curl gnupg -y \ && curl --location --silent dl-ssl.google.com/linux/linux_sign... | apt-key add - \ && sh -c 'echo "deb [arch=amd64] dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ && apt-get update \ && apt-get install google-chrome-stable -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* WORKDIR /work
COPY package.json ./
RUN npm install
COPY app.js download_page_html.js crawler-browser.js start-crawler-browser.sh start-download-page-html.sh ./
EXPOSE 3000
CMD ["node", "app.js"]
And I am having a Apple M1 laptop where I am trying this
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My DockerFile looks -
FROM --platform=linux/amd64 node:20
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_SKIP_DOWNLOAD true
RUN apt-get update && apt-get install curl gnupg -y \
&& curl --location --silent dl-ssl.google.com/linux/linux_sign... | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install google-chrome-stable -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /work
COPY package.json ./
RUN npm install
RUN npx puppeteer browsers install chrome
COPY app.js download_page_html.js crawler-browser.js start-crawler-browser.sh start-download-page-html.sh ./
EXPOSE 3000
CMD ["node", "app.js"]
And I am having a Apple M1 laptop where I am trying this