forked from Chaospott/site
		
	shrink docker image size
This commit is contained in:
		@@ -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
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user