# Ensure apt doesn't ask questions when installing stuff
ENV DEBIAN_FRONTEND=noninteractive
-RUN apt update && apt -y --no-install-recommends install rsync ssh
+RUN apt update && apt -y --no-install-recommends install rsync ssh cron
RUN a2enmod headers
\ No newline at end of file
--- /dev/null
+* * * * * root /usr/local/bin/sync >/proc/1/fd/1 2>/proc/1/fd/2
\ No newline at end of file
+++ /dev/null
-* * * * * root docker exec -it fluidbook-hosting-loadbalancer /usr/local/bin/sync >/dev/null 2>/dev/null
\ No newline at end of file
- './www/:/var/www/html/'
- './config/httpd/apache2.conf:/etc/apache2/apache2.conf'
- './bin/sync:/usr/local/bin/sync'
+ - './config/crontab:/etc/crontab';
restart: unless-stopped
build: .
env_file: env
git reset --hard origin/master
git stash
git pull origin master
-ln -sf /docker/fluidbook-hosting-loadbalancer/crontab /etc/cron.d/fluidbook-hosting-loadbalancer
+rm -f /etc/cron.d/fluidbook-hosting-loadbalancer
chmod 755 ./update
chmod 755 ./ssh
chmod 600 ./ssh/id_rsa