s / Dockerfile
sadg456's picture
Update Dockerfile
4ecdf66 verified
raw
history blame contribute delete
275 Bytes
FROM sing-box/sing-box:latest
# 复制本地配置文件到容器中
COPY cf.json /etc/sing-box/config.json
# 暴露端口(根据你配置的端口改)
EXPOSE 7860
# 运行 sing-box,指定配置文件路径
CMD ["sing-box", "run", "-c", "/etc/sing-box/config.json"]