Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Add CHROME_BIN environment in Docker
Browse files Browse the repository at this point in the history
- The upstream docker image uses Yarn, while I use npm and
  that screws up everything
  • Loading branch information
captn3m0 committed May 12, 2019
1 parent 671e49c commit 5b93267
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Expand Up @@ -7,10 +7,14 @@ ARG VCS_REF

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

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" \
Expand All @@ -20,6 +24,8 @@ 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"

ENTRYPOINT ["/usr/local/bin/node", "server.js"]

EXPOSE 3000

0 comments on commit 5b93267

Please sign in to comment.