Created
August 29, 2016 02:15
-
-
Save a-chernykh/e458417500ae63eb16d0223beb8e7c1e to your computer and use it in GitHub Desktop.
docker osxfs slowness workaround
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV APP_USER app | |
ENV BUNDLE_APP_CONFIG /usr/local/bundle | |
ADD Gemfile $DIR | |
ADD Gemfile.lock $DIR | |
# Force bundler to install all gems to system location (/usr/local/bundle) so that when you run `rake` command | |
# all files are loaded from docker image instead of mounted volume | |
RUN bundle install --deployment --path $BUNDLE_APP_CONFIG | |
RUN chown -R $APP_USER $BUNDLE_APP_CONFIG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment