Skip to content

Commit 773ac94

Browse files
author
Janghyun(JK)Kim
committed
test
1 parent 2c9b740 commit 773ac94

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,12 @@ ADD /bin /opt/openstudio/bin
108108
ADD .rubocop.yml /opt/openstudio/.rubocop.yml
109109

110110
# 4. Create log directory and Precompile Assets
111-
# Added SECRET_KEY_BASE and RAILS_ENV to prevent "Abort" crashes
111+
# We pass OS_SERVER_HOST_URL here just to satisfy the Ruby initializer during build
112112
RUN mkdir -p /opt/openstudio/server/log && \
113-
SECRET_KEY_BASE=dummy_key_for_build RAILS_ENV=production bundle exec rake assets:precompile --trace
113+
SECRET_KEY_BASE=dummy_key_for_build \
114+
RAILS_ENV=production \
115+
OS_SERVER_HOST_URL=localhost \
116+
bundle exec rake assets:precompile --trace
114117

115118
# 5. Final bundle check
116119
RUN rm -f Gemfile.lock && bundle install --jobs=3 --retry=3

0 commit comments

Comments
 (0)