Update Dockerfile
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
@@ -1,11 +1,5 @@
|
|
1 |
-
FROM
|
2 |
-
RUN touch /var/log/v2ray/access.log && chmod -R 755 /var/log/v2ray/access.log
|
3 |
-
# FROM centos:7
|
4 |
|
5 |
-
|
6 |
-
|
7 |
|
8 |
-
# RUN --mount=type=secret,id=TROJAN_CONFIG,mode=0444,required=true \
|
9 |
-
# cat /run/secrets/TROJAN_CONFIG > /tmp/config.json
|
10 |
-
|
11 |
-
# CMD [ "/usr/local/bin/trojan", "/tmp/config.json" ]
|
|
|
1 |
+
FROM ghcr.io/xtls/xray-core:latest
|
|
|
|
|
2 |
|
3 |
+
RUN --mount=type=secret,id=TROJAN_CONFIG,mode=0444,required=true \
|
4 |
+
cat /run/secrets/TROJAN_CONFIG > /etc/xray/config.json
|
5 |
|
|
|
|
|
|
|
|