diff --git a/Dockerfile b/Dockerfile index 99f1b58..3c5dd13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,12 @@ EXPOSE 80 RUN mkdir -p /project/ WORKDIR /project -RUN apt-get update -y && apt-get install -y git ruby ruby-dev rubygems build-essential +RUN apt-get update -y && apt-get install -y git ruby ruby-dev rubygems build-essential cron RUN gem install bundle -CMD git init && git remote add origin https://github.com/Freifunk-Rhein-Sieg/freifunk-rhein-sieg.net && 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" && nginx -g "daemon off;" \ No newline at end of file +RUN git init && git remote add origin https://gitlab.com/labcode-de/ffrs-website.git +RUN mkdir -p /etc/cron && touch /etc/cron/crontab && touch /srv/update.sh +RUN echo "git pull origin v2 && bundle exec jekyll build && rm -rf /usr/share/nginx/html/* && cp -r _site/* /usr/share/nginx/html" > /srv/update.sh +RUN echo "*/1 * * * * /bin/bash /srv/update.sh" > /etc/cron/crontab +RUN crontab /etc/cron/crontab + +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" && nginx -g "daemon off;" && crond -f \ No newline at end of file diff --git a/assets/documents/der-verein/ordnungen/satzung.pdf b/assets/documents/der-verein/ordnungen/satzung.pdf index e69de29..abbf4ea 100644 Binary files a/assets/documents/der-verein/ordnungen/satzung.pdf and b/assets/documents/der-verein/ordnungen/satzung.pdf differ