Update docker process [rebuild docker image]

This commit is contained in:
linguist
2020-12-30 21:51:02 +01:00
parent 183cbb0207
commit e695395d1a
3 changed files with 25 additions and 8 deletions

View File

@@ -3,8 +3,11 @@
# Base image
FROM node:15-buster-slim
# Copy package.json
COPY . /metrics/package.json
# Setup
RUN mkdir /metrics \
RUN cd /metrics \
# Install latest chrome dev package, fonts to support major charsets and skip chromium download on puppeteer install
# Based on https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker
&& apt-get update \
@@ -23,7 +26,9 @@ RUN mkdir /metrics \
&& gem install github-linguist \
# Install python for node-gyp
&& apt-get update \
&& apt-get install -y python3
&& apt-get install -y python3 \
# Install node modules
&& npm ci
# Environment variables
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true