From ccf1fb8b36b579f03db5bdb81d07d6e24f9cb877 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Tue, 17 Mar 2020 02:01:59 +0200 Subject: [PATCH] Update bundler and use proper path variable --- Dockerfile.dev | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index be6f1e9..0fb6829 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -18,13 +18,15 @@ RUN apt-get update && apt-get -y upgrade \ # Separate Gemfile ADD so that `bundle install` can be cached more effectively ADD Gemfile Gemfile.lock /var/www/ -RUN mkdir -p /var/bundle && chown -R web:web /var/bundle && chown -R web:web /var/www +RUN gem install bundler && \ + mkdir -p /var/bundle && chown -R web:web /var/bundle && chown -R web:web /var/www WORKDIR /var/www USER web RUN bundle config github.https true && \ -bundle install --path /var/bundle --jobs 8 + bundle config set path '/var/bundle' && \ + bundle install --jobs 8 USER root CMD ["/var/www/script/entry.sh"]