Created
August 1, 2018 18:33
-
-
Save kigiri/58466a478f9dde64e2b9da2f2975efc9 to your computer and use it in GitHub Desktop.
node 10 + dependencies for puppeteer (without chromium binary) for now deploy
This file contains hidden or 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 node:10-alpine | |
RUN \ | |
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ | |
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \ | |
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ | |
&& apk --no-cache update \ | |
&& apk --no-cache upgrade \ | |
&& apk add --no-cache --virtual .build-deps \ | |
gifsicle pngquant optipng libjpeg-turbo-utils \ | |
udev ttf-opensans \ | |
&& rm -rf /var/cache/apk/* /tmp/* | |
COPY . /app | |
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true | |
RUN cd /app && yarn --production --pure-lockfile | |
EXPOSE 3000 | |
WORKDIR /app | |
CMD yarn start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment