Skip to content

Commit

Permalink
Auto timeout + retry when installing gems with bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
choonkeat committed Apr 24, 2016
1 parent 2d23e54 commit 938d49f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/Dockerfile
@@ -1,6 +1,8 @@
FROM ruby:2.2

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y imagemagick ghostscript
RUN wget -O $TMPDIR/bundler_geminstaller_install_with_timeout.rb "https://gist.githubusercontent.com/choonkeat/e7196200db3b24f0898e17dc753171d5/raw/7583a734a5e2569d070461c430fd239be10ad720/bundler_geminstaller_install_with_timeout.rb"
RUN ruby $TMPDIR/bundler_geminstaller_install_with_timeout.rb

RUN useradd -d /app -m app
RUN chown -R app /usr/local/bundle
Expand Down

0 comments on commit 938d49f

Please sign in to comment.