Created
February 22, 2019 14:28
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
take a look at this https://stackoverflow.com/questions/23022258/tzinfodatasourcenotfound-error-starting-rails-v4-1-0-server-on-windows?noredirect=1&lq=1