Initial commit

This commit is contained in:
Julian Ospald 2017-08-06 22:37:15 +02:00
commit 79d3e1c7a8
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 27 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM haskell:8
MAINTAINER Julian Ospald <hasufell@posteo.de>
RUN cabal update && cabal install hakyll
COPY ./run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
ENTRYPOINT ["run.sh"]

18
run.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -e
if [[ -z $1 ]] ; then
exit 1
fi
repo=$1
git clone ${repo} /website
cd /website
cabal install
sh -c "while true ; do sleep 600 && git pull --ff-only origin master; done" &
cabal run site watch