Add docker helpers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy 2020-04-06 13:23:24 +02:00
parent 93b3c55221
commit 6748e69a51
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -4,3 +4,15 @@ devserver:
@echo "Serving development site from $(DEV_DIST_DIR)"
@jekyll serve --watch --incremental --destination $(DEV_DIST_DIR)
.PHONY: devserver
dockerbuild:
@docker build -t autonomic/autonomic.zone:testing .
.PHONY: dockerbuild
dockerserver: dockerbuild
@docker run \
-e JEKYLL_PORT=4000 \
-e JEKYLL_HOST=0.0.0.0 \
-p 4000:4000 \
autonomic/autonomic.zone:testing
.PHONY: dockerserver