Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议修改dockerfile 中的资源文件路径 #28

Closed
yitahutu opened this issue Apr 1, 2019 · 1 comment
Closed

建议修改dockerfile 中的资源文件路径 #28

yitahutu opened this issue Apr 1, 2019 · 1 comment

Comments

@yitahutu
Copy link

yitahutu commented Apr 1, 2019

当我想使用自己的config.json时,我可以使用-v ${APPDATADIR}/v2ray/config:/etc/v2ray.
但当我想使用自定义的资源文件时,由于缺省的资源文件路径中还有v2ray执行文件,我不能使用-v ${APPDATADIR}/v2ray/asset:/usr/bin/v2ray, 会报错找不到可执行文件。

建议在dockerfile中作如下修改:
COPY --from=builder /usr/bin/v2ray/geoip.dat /newpath/to/asset/
COPY --from=builder /usr/bin/v2ray/geosite.dat /newpath/to/asset/
ENV V2RAY_LOCATION_ASSET /newpath/to/asset/

其实我一直认为v2ray-core把资源文件放在/usr/bin里不是太好, /usr/bin里一大堆可执行文件和软链接文件中放着一个v2ray文件夹总觉得有点奇怪。

@yitahutu yitahutu closed this as completed Apr 2, 2019
@yitahutu
Copy link
Author

yitahutu commented Apr 2, 2019

原来可以直接写 -v ${APPDATADIR}/v2ray/asset/h2y.dat:/usr/bin/v2ray/h2y.dat。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant