Use environment variable for bundle env

So it works for standalone commands too
This commit is contained in:
Nick Sellen 2018-12-16 10:20:32 +00:00
parent 79ac451b4a
commit b1c23ea9f3
1 changed files with 4 additions and 2 deletions

View File

@ -12,10 +12,12 @@ services:
jekyll: jekyll:
image: ruby:2.5.3 image: ruby:2.5.3
working_dir: /src
environment:
BUNDLE_PATH: /vendor
command: > command: >
sh -c ' sh -c '
cd /src && bundle &&
bundle --path /vendor &&
bundle exec jekyll build --destination /site --watch bundle exec jekyll build --destination /site --watch
' '
volumes: volumes: