From f5ab15232884eb201832c407f8c7885ed616ebc5 Mon Sep 17 00:00:00 2001 From: Leo Maroni Date: Sat, 19 May 2018 14:30:40 +0200 Subject: [PATCH] Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 655e745..a914dca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,5 @@ RUN gem install bundle RUN git init && git remote add origin https://gitlab.com/labcode-de/ffrs-website.git RUN touch /etc/cron.d/update && touch /srv/update.sh && chmod 775 /srv/update.sh && chmod 644 /etc/cron.d/update && touch /var/log/cron.log RUN echo "cd /project && git pull origin v2 && /usr/local/bin/bundle exec jekyll build && rm -rf /usr/share/nginx/html/* && cp -r _site/* /usr/share/nginx/html" > /srv/update.sh -RUN echo "*/1 * * * * root /srv/update.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/update +RUN echo "*/30s * * * * root /srv/update.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/update CMD git fetch && git pull origin v2 && bundle install && bundle exec jekyll build && rm -rf /usr/share/nginx/html/* && cp -r _site/* /usr/share/nginx/html && echo "ready" && /etc/init.d/cron start && nginx -g "daemon off;"