Skip to content

Instantly share code, notes, and snippets.

@orangewolf
Created February 2, 2017 23:53
Show Gist options
  • Save orangewolf/598e33f74efced12a22a7499e27e7b9b to your computer and use it in GitHub Desktop.
Save orangewolf/598e33f74efced12a22a7499e27e7b9b to your computer and use it in GitHub Desktop.
Step 1)
mkdir ./bundle
touch ./bundle/.gitkeep
git add ./bundle/.gitkeep
echo 'bundle/*' >> .gitignore
Step 2) in your Dockerfile
COPY ./bundle /bundle
ENV BUNDLE_GEMFILE=$APP_HOME/Gemfile \
BUNDLE_JOBS=2 \
BUNDLE_PATH=/bundle
ADD Gemfile* $APP_HOME/
RUN bundle check || bundle install
Step 3)
After running "docker-compose up" run "docker cp PROJNAME_web_1:/bunlde ."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment