shrink docker image size

This commit is contained in:
gidsi 2017-12-14 22:20:41 +01:00
parent aa6e3758de
commit 86fecfc4dd
No known key found for this signature in database
GPG Key ID: B47291090A6E5604

View File

@ -1,6 +1,8 @@
FROM jekyll/jekyll
from jekyll/jekyll as builder
add . /srv/jekyll
run mkdir /site
run whoami
run jekyll build --source /srv/jekyll --destination /tmp
ADD . /srv/jekyll
WORKDIR /srv/jekyll
CMD jekyll serve -H 0.0.0.0
from nginx:alpine
copy --from=builder /tmp /usr/share/nginx/html