-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sadegh Hayeri
committed
Dec 7, 2019
1 parent
f03e36e
commit 390eba7
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |