From ed95ce9afdfad40586a15c4187697690ca2163a0 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sun, 16 Jun 2019 19:54:00 +0530 Subject: [PATCH] Bump Chrome revision --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d1832c5..3332616 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,16 +5,17 @@ LABEL maintainer "Nemo " ARG BUILD_DATE ARG VCS_REF +ENV CHROME_REVISION=662092 + WORKDIR /app -# Ensure that the chromium path hasn't changed -RUN ls /usr/local/share/.config/yarn/global/node_modules/puppeteer/.local-chromium/linux-650583/chrome-linux/chrome +# Ensure that the chromium path hasn't changed (this fails the build early) +RUN ls "/usr/local/share/.config/yarn/global/node_modules/puppeteer/.local-chromium/linux-$CHROME_REVISION/chrome-linux/chrome" COPY package.json package-lock.json /app/ RUN npm install - LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.name="Prometheus ACT Exporter" \ org.label-schema.vcs-url="https://git.captnemo.in/nemo/prometheus-act-exporter.git" \ @@ -24,7 +25,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ COPY index.js server.js prom.js *.md /app/ -ENV CHROME_BIN="/usr/local/share/.config/yarn/global/node_modules/puppeteer/.local-chromium/linux-650583/chrome-linux/chrome" +ENV CHROME_BIN="/usr/local/share/.config/yarn/global/node_modules/puppeteer/.local-chromium/linux-$CHROME_REVISION/chrome-linux/chrome" ENTRYPOINT ["/usr/local/bin/node", "server.js"]