Browse Source

Sleep 30 seconds to wait for Nginx restart

andryyy 8 years ago
parent
commit
e332579a40
1 changed files with 2 additions and 1 deletions
  1. 2 1
      data/Dockerfiles/rspamd/Dockerfile

+ 2 - 1
data/Dockerfiles/rspamd/Dockerfile

@@ -21,7 +21,8 @@ ADD antivirus.conf /etc/rspamd/modules.d/antivirus.conf
 
 
 RUN pip install -U oletools
 RUN pip install -U oletools
 
 
-CMD ["/usr/bin/rspamd", "-f", "-u", "_rspamd", "-g", "_rspamd"]
+# Give Nginx/PHP time to restart
+CMD /bin/sleep 30; /usr/bin/rspamd -f -u _rspamd -g _rspamd
 
 
 RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*