diff --git a/Dockerfile b/Dockerfile index 3c5dd13..73c1ab2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,7 @@ WORKDIR /project RUN apt-get update -y && apt-get install -y git ruby ruby-dev rubygems build-essential cron RUN gem install bundle 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 touch /etc/cron.d/update && touch /srv/update.sh && chmod 775 /srv/update.sh && chmod 644 /etc/cron.d/update 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 +RUN echo "*/1 * * * * /srv/update.sh" > /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" && nginx -g "daemon off;" && /etc/init.d/cron start \ No newline at end of file diff --git a/assets/documents/der-verein/ordnungen/finanzen.pdf b/assets/documents/der-verein/ordnungen/finanzen.pdf new file mode 100644 index 0000000..bce1a13 Binary files /dev/null and b/assets/documents/der-verein/ordnungen/finanzen.pdf differ