sadg456 commited on
Commit
ccff9fa
·
verified ·
1 Parent(s): 813b846

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -20,6 +20,6 @@ COPY cf.json /app/config.json
20
 
21
  # 切换到非 root 用户
22
  USER singbox
23
-
24
  # 设置启动命令
25
  ENTRYPOINT ["sing-box", "run", "-c", "/app/config.json"]
 
20
 
21
  # 切换到非 root 用户
22
  USER singbox
23
+ RUN iconv -f utf-8 -t utf-8 -c /app/config.json -o /app/config-clean.json && mv /app/config-clean.json /app/config.json
24
  # 设置启动命令
25
  ENTRYPOINT ["sing-box", "run", "-c", "/app/config.json"]