Update Dockerfile
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
-
FROM
|
|
|
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 |
-
|
8 |
|
9 |
-
CMD [ "/usr/local/bin/trojan", "/tmp/config.json" ]
|
|
|
1 |
+
FROM v2ray/official
|
2 |
+
# FROM centos:7
|
3 |
|
4 |
+
# COPY ./trojan /usr/local/bin/trojan
|
5 |
+
# RUN chmod +x /usr/local/bin/trojan
|
6 |
|
7 |
+
# RUN --mount=type=secret,id=TROJAN_CONFIG,mode=0444,required=true \
|
8 |
+
# cat /run/secrets/TROJAN_CONFIG > /tmp/config.json
|
9 |
|
10 |
+
# CMD [ "/usr/local/bin/trojan", "/tmp/config.json" ]
|