mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-14 13:51:26 +00:00
Update bundler and use proper path variable
This commit is contained in:
parent
47c445acf4
commit
ccf1fb8b36
1 changed files with 4 additions and 2 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue