Skip to content

Error building docker image #330

@theimpostor

Description

@theimpostor

Following the directions to build the docker image from docker/README.md, getting the following error:

docker build -t quranic-universal-library .

...

=> ERROR [33/42] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile                                                                                                               6.6s
------
 > [33/42] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile:
1.265 /usr/local/rvm/gems/ruby-3.3.3/gems/activesupport-7.0.8.4/lib/active_support/message_verifier.rb:4: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec. Also contact author of activesupport-7.0.8.4 to add base64 into its gemspec.
1.552 /usr/local/rvm/gems/ruby-3.3.3/gems/activesupport-7.0.8.4/lib/active_support/notifications/fanout.rb:3: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add mutex_m to your Gemfile or gemspec. Also contact author of activesupport-7.0.8.4 to add mutex_m into its gemspec.
6.219 /home/app/qul/config/initializers/sidekiq.rb:13: warning: Sidekiq's Delayed Extensions will be removed in Sidekiq 7.0
6.224 DEPRECATION WARNING: default_worker_options= is deprecated and will be removed from Sidekiq 7.0 (use default_job_options= instead) (called from <top (required)> at /home/app/qul/config/initializers/sidekiq.rb:16)
6.491 rails aborted!
6.494 ArgumentError: `secret_key_base` for production environment must be a type of String` (ArgumentError)
6.494
6.494         raise ArgumentError, "`secret_key_base` for #{Rails.env} environment must be a type of String`"
6.494               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6.494 /home/app/qul/config/environment.rb:5:in `<top (required)>'
6.494 Tasks: TOP => environment
6.494 (See full trace by running task with --trace)

I'm guessing I need to set some build args, perhaps the instructions here are incomplete?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions