From 390eba76f168f7081de4b8e5f273c44aacd131cc Mon Sep 17 00:00:00 2001 From: Sadegh Hayeri Date: Sat, 7 Dec 2019 18:02:29 +0330 Subject: [PATCH] Add Dockerfile --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4a47628 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM mhart/alpine-node:12 + +ENV PORT 8000 +ENV VERBOSE 'green-tunnel:*' +ENV SILENT false +ENV DNS_TYPE 'https' +ENV DNS_SERVER 'https://cloudflare-dns.com/dns-query' + +WORKDIR /green-tunnel + +COPY package*.json ./ +RUN npm ci + +COPY src ./src +COPY bin ./bin + +EXPOSE 8000/tcp + +CMD node ./bin/gt.js \ + --verbose $VERBOSE \ + --ip 0.0.0.0 \ + --port $PORT \ + --silent $SILENT \ + --system-proxy false \ + --dns-type $DNS_TYPE \ + --dns-server $DNS_SERVER