wsj1995 commited on
Commit
6a4e5af
·
verified ·
1 Parent(s): c981524

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ FROM centos:7
2
+
3
+ COPY ./trojan /usr/local/bin/trojan
4
+ RUN chmod +x /usr/local/bin/trojan
5
+
6
+ RUN --mount=type=secret,id=TROJAN_CONFIG,mode=0444,required=true \
7
+ cat /run/secrets/TROJAN_CONFIG > /tmp/config.json
8
+
9
+ CMD [ "/usr/local/bin/trojan", "/tmp/config.json" ]