Skip to content

Instantly share code, notes, and snippets.

@kigiri
Created August 1, 2018 18:33
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 kigiri/58466a478f9dde64e2b9da2f2975efc9 to your computer and use it in GitHub Desktop.
Save kigiri/58466a478f9dde64e2b9da2f2975efc9 to your computer and use it in GitHub Desktop.
node 10 + dependencies for puppeteer (without chromium binary) for now deploy
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