lixian1 commited on
Commit
348500e
·
verified ·
1 Parent(s): b5f811b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -7,6 +7,10 @@ RUN curl -Lo /tmp/sing-box.tar.gz https://github.com/SagerNet/sing-box/releases/
7
  RUN mkdir -p /etc/sing-box
8
  RUN touch /etc/sing-box/config.json
9
  RUN chmod 777 /etc/sing-box/config.json
 
 
10
  COPY main.py /etc/sing-box/main.py
11
- EXPOSE 7860
12
- CMD ["python3", "/etc/sing-box/main.py"]
 
 
 
7
  RUN mkdir -p /etc/sing-box
8
  RUN touch /etc/sing-box/config.json
9
  RUN chmod 777 /etc/sing-box/config.json
10
+ RUN mkdir -p /etc/sing-box/www
11
+ RUN echo "<h1>Hello World</h1><p>VLESS service is running at /vless-ws</p>" > /etc/sing-box/www/index.html
12
  COPY main.py /etc/sing-box/main.py
13
+ COPY start.sh /etc/sing-box/start.sh
14
+ RUN chmod +x /etc/sing-box/start.sh
15
+ EXPOSE 7860 8080
16
+ CMD ["/etc/sing-box/start.sh"]