Skip to content

Commit

Permalink
ruby: source .bashrc before installing gems
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 5, 2024
1 parent 9eed945 commit ca26303
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/app/ruby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ COPY --chown=ishocon:ishocon webapp/ /home/ishocon/webapp
WORKDIR /home/ishocon

# ライブラリのインストール
RUN ["/bin/bash", "-lc", "cd /home/ishocon/webapp/ruby && gem install bundler && bundle install"]
RUN bash -c "source ~/.bashrc" && \
cd /home/ishocon/webapp/ruby && \
gem install bundler -v "1.16.1" && \
bundle install

COPY run.sh /home/ishocon/run.sh

Expand Down

0 comments on commit ca26303

Please sign in to comment.