Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismayer committed Mar 16, 2020
1 parent 8503ae6 commit 1c8c5c4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM node:13-alpine

ENV GS_CHECKER_BASEURL=$GS_CHECKER_BASEURL
ENV GS_CHECKER_USER=$GS_CHECKER_USER
ENV GS_CHECKER_PWD=$GS_CHECKER_PWD
ENV GS_CHECKER_WS=$GS_CHECKER_WS

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
ENV CHROME_BIN="/usr/bin/chromium-browser"
ENV GS_CHECKER_CHROME_EXEC="/usr/bin/chromium-browser"

RUN set -x \
&& apk update \
&& apk upgrade \
&& apk add --no-cache \
udev \
ttf-freefont \
chromium

WORKDIR /opt

COPY package*.json ./

RUN npm install

COPY . .

CMD [ "npm", "start" ]

0 comments on commit 1c8c5c4

Please sign in to comment.