Created
February 2, 2017 23:53
-
-
Save orangewolf/598e33f74efced12a22a7499e27e7b9b to your computer and use it in GitHub Desktop.
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
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