Skip to content

Commit

Permalink
Fix the build error to ensure we have access to the Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kaysiz committed Nov 18, 2024
1 parent 5799716 commit 4978d2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ RUN mkdir -p /home/app/webapp/vendor/bundle && \
WORKDIR /home/app/webapp
RUN gem install rubygems-update -v 3.5.6 && \
gem install bundler:2.5.6 && \
/sbin/setuser app bundle install --path vendor/bundle
su - app -c "bundle config set path 'vendor/bundle'" && \
su - app -c 'cd /home/app/webapp && bundle install'

# Run additional scripts during container startup (i.e. not at build time)
WORKDIR /home/app/webapp
Expand Down

0 comments on commit 4978d2c

Please sign in to comment.