mirror of
https://git.coop/cotech/website.git
synced 2024-11-23 23:23:06 +00:00
4f27c1274b
Was encountering a problem with the bundler version Used the solution here: https://stackoverflow.com/questions/47026174/find-spec-for-exe-cant-find-gem-bundler-0-a-gemgemnotfoundexception Signed-off-by: Chris Croome <chris@webarchitects.co.uk>
32 lines
550 B
YAML
32 lines
550 B
YAML
---
|
|
version: '3'
|
|
services:
|
|
|
|
web:
|
|
build: docker/web
|
|
volumes:
|
|
- site:/usr/local/apache2/htdocs/
|
|
- ./docker/web/httpd.conf:/usr/local/apache2/conf/httpd.conf
|
|
ports:
|
|
- "4000:80"
|
|
|
|
jekyll:
|
|
image: ruby:2.6.6
|
|
working_dir: /src
|
|
environment:
|
|
BUNDLE_PATH: /vendor
|
|
command: >
|
|
sh -c '
|
|
gem update --system &&
|
|
bundle &&
|
|
bundle exec jekyll build --destination /site --watch
|
|
'
|
|
volumes:
|
|
- .:/src
|
|
- site:/site
|
|
- vendor:/vendor
|
|
|
|
volumes:
|
|
vendor:
|
|
site:
|