Browse Source

cron

cron
pascal.pp 3 years ago
parent
commit
d9bca71c0f
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      bin/webserver/Dockerfile

+ 3
- 3
bin/webserver/Dockerfile View File

@@ -12,9 +12,6 @@ RUN apt-get -y install cron
12 12
 # Create the log file to be able to run tail
13 13
 RUN touch /var/log/cron.log
14 14
 
15
-# Run the command on container startup
16
-CMD cron && tail -f /var/log/cron.log
17
-
18 15
 # Install important libraries
19 16
 RUN apt-get -y install --fix-missing apt-utils build-essential git curl libcurl3 libcurl3-dev zip openssl
20 17
 
@@ -58,4 +55,7 @@ RUN docker-php-ext-install -j$(nproc) gd
58 55
 # Enable apache modules
59 56
 RUN a2enmod rewrite headers
60 57
 
58
+# Run the command on container startup
59
+CMD cron && tail -f /var/log/cron.log
60
+
61 61
 CMD /usr/sbin/apache2ctl -D FOREGROUND

Loading…
Cancel
Save