Created
January 24, 2019 05:10
-
-
Save dmastag/087543b2491518faf61dd084a676eb60 to your computer and use it in GitHub Desktop.
Dockerfile for NodeJS with Puppeteer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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