Skip to content

Commit

Permalink
Override BUNDLE_PATH from ruby-slim-stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 committed Apr 14, 2018
1 parent 7b1488b commit 7684ff0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Dockerfile.diaspora
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ RUN addgroup --system --gid ${EXT_GID} diaspora
RUN adduser --system --uid ${EXT_UID} --gid ${EXT_GID} diaspora

USER diaspora
RUN mkdir /home/diaspora/diaspora
WORKDIR /home/diaspora/diaspora
ENV DIASPORA_HOME /home/diaspora/diaspora
RUN mkdir $DIASPORA_HOME
WORKDIR $DIASPORA_HOME

ENV GEM_HOME $DIASPORA_HOME/vendor/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_APP_CONFIG="$DIASPORA_HOME/.bundle"
ENV PATH $BUNDLE_BIN:$PATH

# Finish setup
COPY ./start.sh ../start.sh
Expand Down
1 change: 0 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

action_install_gems() {
script/configure_bundler
bin/bundle config --local path vendor/bundle
bin/bundle install --full-index
}

Expand Down

0 comments on commit 7684ff0

Please sign in to comment.