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 未添加zoneinfo.zip导致install时报500错误 #20

Closed
junhuoku007 opened this issue Aug 18, 2018 · 0 comments
Closed

Dockerfile 未添加zoneinfo.zip导致install时报500错误 #20

junhuoku007 opened this issue Aug 18, 2018 · 0 comments

Comments

@junhuoku007
Copy link

使用Docker的形式运行,安装的时候控制台报如下错误:
Handler crashed with error register db Ping default, open /usr/local/go/lib/time/zoneinfo.zip: no such file or directory

已找到解决方法:
需提供zoneinfo.zip并在Dockerfile添加 COPY ./zoneinfo.zip /usr/local/go/lib/time/zoneinfo.zip

参考:
http://blog.swiftflamel.com/2018/03/09/golang%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E4%B8%ADtime%E5%8C%85%E7%9A%84zonefile-zip%E9%97%AE%E9%A2%98/

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