Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadegh Hayeri committed Dec 7, 2019
1 parent f03e36e commit 390eba7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 390eba7

Please sign in to comment.