Skip to content

Commit ca26303

Browse files
committed
ruby: source .bashrc before installing gems
1 parent 9eed945 commit ca26303

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/app/ruby/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ COPY --chown=ishocon:ishocon webapp/ /home/ishocon/webapp
1616
WORKDIR /home/ishocon
1717

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

2124
COPY run.sh /home/ishocon/run.sh
2225

0 commit comments

Comments
 (0)