We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c9b740 commit 773ac94Copy full SHA for 773ac94
1 file changed
Dockerfile
@@ -108,9 +108,12 @@ ADD /bin /opt/openstudio/bin
108
ADD .rubocop.yml /opt/openstudio/.rubocop.yml
109
110
# 4. Create log directory and Precompile Assets
111
-# Added SECRET_KEY_BASE and RAILS_ENV to prevent "Abort" crashes
+# We pass OS_SERVER_HOST_URL here just to satisfy the Ruby initializer during build
112
RUN mkdir -p /opt/openstudio/server/log && \
113
- SECRET_KEY_BASE=dummy_key_for_build RAILS_ENV=production bundle exec rake assets:precompile --trace
+ SECRET_KEY_BASE=dummy_key_for_build \
114
+ RAILS_ENV=production \
115
+ OS_SERVER_HOST_URL=localhost \
116
+ bundle exec rake assets:precompile --trace
117
118
# 5. Final bundle check
119
RUN rm -f Gemfile.lock && bundle install --jobs=3 --retry=3
0 commit comments