wsj1995 commited on
Commit
5c7e1e1
·
verified ·
1 Parent(s): 9579b4a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -9
Dockerfile CHANGED
@@ -1,11 +1,5 @@
1
- FROM v2ray/official
2
- RUN touch /var/log/v2ray/access.log && chmod -R 755 /var/log/v2ray/access.log
3
- # FROM centos:7
4
 
5
- # COPY ./trojan /usr/local/bin/trojan
6
- # RUN chmod +x /usr/local/bin/trojan
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