From b487569c66aa97099a75e78cfac727718f17c609 Mon Sep 17 00:00:00 2001 From: jreichmann <34141868+jreichmann@users.noreply.github.com> Date: Sun, 3 Jun 2018 19:57:27 +0200 Subject: [PATCH] Added Dockerfile Based on docker-caddy, this Dockerfile checks out kitinfo/timers and kitinfo-timers-data and builds the database back from the dump, and serves the contents --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a4c63ee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM docker.jcg.re/docker-caddy + +RUN apk add \ + php7 \ + sqlite3 \ + git + +RUN cd /var/www && git clone https://github.com/kitinfo/timers.git . + +RUN cd /var/www && mkdir receive_hook && mkdir db_dump + +RUN cd /var/www && git clone https://git.finallycoffee.eu/jonaWantsCoffee/kitinfo-timers-data.git . + +ADD receive_hook /var/www/receive_hook + +EXPOSE 80