Create Dockerfile
Browse files- 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" ]
|