Skip to content

Instantly share code, notes, and snippets.

@skozz
Created February 22, 2019 14:28
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skozz/0ac405c565b41bfa21fb93e32ab69ad4 to your computer and use it in GitHub Desktop.
Save skozz/0ac405c565b41bfa21fb93e32ab69ad4 to your computer and use it in GitHub Desktop.
[Solution Rails + Docker] TZInfo::DataSourceNotFound: tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install
- Add `gem 'tzinfo-data'` to the Gemfile.
- Add `tzdata` to the Dockerfile
```
RUN apk update \
&& apk add build-base \
tzdata
```
- Build `docker-compose build` or `docker-compose up --build`
- Enjoy the life
@helmerdavila
Copy link

You deserve the heaven

@zulhfreelancer
Copy link

Thank you. It's working.

@theCompanyDream
Copy link

Thank you so much that fixed my problem >.< Alpine can be such a pain in the butt

@NaN1488
Copy link

NaN1488 commented May 25, 2021

thanks!

@JakeTheCorn
Copy link

This was a big help, thank you

@BKmetoff
Copy link

man, you are a life-saver!! thank you so much!

@L1ghtingBolt
Copy link

Windows 10 solution?

@Jothinayagan
Copy link

Yeah. That's the solution. Thanks.

@shone1991
Copy link

shone1991 commented Jun 22, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment