speed up build time by caching gems

This commit is contained in:
Jeppe Ernst 2018-07-07 22:38:37 +02:00
parent 4fcb70dca1
commit 52d83b5a24
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
_site _site
.sass-cache .*-cache
.jekyll-metadata .jekyll-metadata
_scripts/config.sh _scripts/config.sh

View File

@ -1,4 +1,3 @@
jekyll: jekyll:
image: jekyll/builder image: jekyll/builder
command: bash /srv/jekyll/_scripts/build-then-deploy.sh command: bash /srv/jekyll/_scripts/build-then-deploy.sh
@ -6,3 +5,4 @@ jekyll:
- 4000:4000 - 4000:4000
volumes: volumes:
- .:/srv/jekyll - .:/srv/jekyll
- ./.gem-cache/bundle:/usr/local/bundle

View File

@ -1,4 +1,3 @@
jekyll: jekyll:
image: jekyll/jekyll image: jekyll/jekyll
command: jekyll serve --livereload --reload_port 35729 command: jekyll serve --livereload --reload_port 35729
@ -7,3 +6,4 @@ jekyll:
- 35729:35729 - 35729:35729
volumes: volumes:
- .:/srv/jekyll - .:/srv/jekyll
- ./.gem-cache/bundle:/usr/local/bundle