Skip to content

Commit

Permalink
Merge pull request #53 from NewcastleRSE/jannetta-1
Browse files Browse the repository at this point in the history
Add Makefile to build site using docker
  • Loading branch information
jsteyn authored Jan 26, 2024
2 parents a674cfd + e4b982d commit 9a97792
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
DOCKERPORT=4000
HOSTPORT=4000
NAME=jekyll
DOCKERMOUNTPOINT=/srv/jekyll
PROJECT=${PWD}
JEKYLL_VERSION=latest

serve:
docker run --rm --name ${NAME} --volume="${PROJECT}:${DOCKERMOUNTPOINT}" --publish ${HOSTPORT}:${DOCKERPORT} jekyll/jekyll:${JEKYLL_VERSION} jekyll serve

stop:
docker stop jekyll

0 comments on commit 9a97792

Please sign in to comment.