refactor docker image building

This commit is contained in:
rzen
2020-09-05 00:20:42 -04:00
parent a5484dd46b
commit e3a9b3fb41
6 changed files with 65 additions and 23 deletions

8
build/Dockerfile-serve Normal file
View File

@ -0,0 +1,8 @@
FROM docker.rzen.dev/jekyll:latest
COPY docker-entrypoint.sh /usr/local/bin/
# on every container start, check if Gemfile exists and warn if it's missing
ENTRYPOINT [ "docker-entrypoint.sh" ]
CMD [ "bundle", "exec", "jekyll", "serve", "--force_polling", "-H", "0.0.0.0", "-P", "4000" ]