Kaynağa Gözat

cron requires /var/spool/cron to be writable

This is where it stores user cronjobs
Girish Ramakrishnan 8 yıl önce
ebeveyn
işleme
de65de9e5b
2 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 3 0
      Dockerfile
  2. 1 1
      start.sh

+ 3 - 0
Dockerfile

@@ -72,6 +72,9 @@ ADD proftpd.conf /app/code/proftpd.conf.template
 
 RUN rm -rf /var/log/proftpd && ln -s /run/proftpd /var/log/proftpd
 
+# configure cron
+RUN rm -rf /var/spool/cron && ln -s /run/cron /var/spool/cron
+
 # configure supervisor
 ADD supervisor/ /etc/supervisor/conf.d/
 RUN sed -e 's,^logfile=.*$,logfile=/run/supervisord.log,' -i /etc/supervisor/supervisord.conf

+ 1 - 1
start.sh

@@ -2,7 +2,7 @@
 
 set -eu
 
-mkdir -p /app/data/public /run/apache2 /run/proftpd /run/app
+mkdir -p /app/data/public /run/apache2 /run/proftpd /run/app /run/cron
 
 # check if any index file exists
 for f in /app/data/public/index.*; do