Skip to content

Instantly share code, notes, and snippets.

@a-chernykh
Created August 29, 2016 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-chernykh/e458417500ae63eb16d0223beb8e7c1e to your computer and use it in GitHub Desktop.
Save a-chernykh/e458417500ae63eb16d0223beb8e7c1e to your computer and use it in GitHub Desktop.
docker osxfs slowness workaround
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