Skip to content

Instantly share code, notes, and snippets.

@dmastag
Created January 24, 2019 05:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmastag/087543b2491518faf61dd084a676eb60 to your computer and use it in GitHub Desktop.
Save dmastag/087543b2491518faf61dd084a676eb60 to your computer and use it in GitHub Desktop.
Dockerfile for NodeJS with Puppeteer
FROM zenika/alpine-chrome:with-node
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD 1
COPY --chown=chrome package.json package-lock.json /usr/src/app/
RUN npm install --production
COPY --chown=chrome . /usr/src/app
WORKDIR /usr/src/app
ENTRYPOINT []
# run command
CMD [ "npm", "run", "docker-start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment