FROM node:8
RUN apt-get update && apt-get install -y wget --no-install-recommends \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable --no-install-recommends --fix-missing \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get purge --auto-remove -y curl \
&& rm -rf /src/*.deb
RUN mkdir /projects/puppeteer_impl/output -p
RUN mkdir /projects/puppeteer_impl/node_modules -p
WORKDIR /projects/puppeteer_impl
#ADD node_modules /projects/puppeteer_impl/node_modules/
COPY . /projects/puppeteer_impl/
RUN npm install
CMD ["node", "app.js"]