shrink docker image size
This commit is contained in:
parent
aa6e3758de
commit
86fecfc4dd
@ -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
|
from nginx:alpine
|
||||||
WORKDIR /srv/jekyll
|
copy --from=builder /tmp /usr/share/nginx/html
|
||||||
|
|
||||||
CMD jekyll serve -H 0.0.0.0
|
|
||||||
|
Loading…
Reference in New Issue
Block a user