From e332579a40d72ae71763bf183ae28a67e8aeaf0f Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 4 Mar 2017 10:41:36 +0100 Subject: [PATCH] Sleep 30 seconds to wait for Nginx restart --- data/Dockerfiles/rspamd/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/Dockerfiles/rspamd/Dockerfile b/data/Dockerfiles/rspamd/Dockerfile index 3ca1dc42..bd94f25e 100644 --- a/data/Dockerfiles/rspamd/Dockerfile +++ b/data/Dockerfiles/rspamd/Dockerfile @@ -21,7 +21,8 @@ ADD antivirus.conf /etc/rspamd/modules.d/antivirus.conf 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/*