Initial Dockerfile

This commit is contained in:
Nemo 2018-06-04 13:38:40 +05:30
parent 5e379ff173
commit 1fe55b5b47
3 changed files with 35 additions and 0 deletions

14
COPYING Normal file
View File

@ -0,0 +1,14 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2015 Abhay Rana <me@captnemo.in>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM alekzonder/puppeteer:1
LABEL maintainer Nemo <docker@captnemo.in>
WORKDIR /app
COPY package.json package-lock.json /app/
RUN npm install
COPY index.js server.js /app/
ENTRYPOINT ["/usr/bin/node", "server"]
EXPOSE 3000

View File

@ -43,3 +43,9 @@ You can pass the following environment variables:
1. `PROXY_SERVER`: Use a proxy server to connect to ACT. Use a `socks5` proxy, since ACT returns a 403 if you try to use a CONNECT proxy. `export PROXY_SERVER="socks5://10.8.0.14:1080"` 1. `PROXY_SERVER`: Use a proxy server to connect to ACT. Use a `socks5` proxy, since ACT returns a 403 if you try to use a CONNECT proxy. `export PROXY_SERVER="socks5://10.8.0.14:1080"`
2. `CHROME_BIN`: Set Chrome/Chromium executable path. 2. `CHROME_BIN`: Set Chrome/Chromium executable path.
3. `DISABLE_HEADLESS`: If set, chrome will not launch in headless mode. 3. `DISABLE_HEADLESS`: If set, chrome will not launch in headless mode.
# LICENSE
This is licensed under WTFPL. See COPYING file for the full text.
The canonical URL for this project is <https://git.captnemo.in/nemo/prometheus-act-exporter>.