Commit 41b5671f authored by Sébastien Moretti's avatar Sébastien Moretti
Browse files

Apache runs in foreground to stay active

parent a150b43e
...@@ -50,8 +50,8 @@ RUN echo '# OS update' \ ...@@ -50,8 +50,8 @@ RUN echo '# OS update' \
&& mkdir -p /var/run/apache2 \ && mkdir -p /var/run/apache2 \
&& . /etc/apache2/envvars \ && . /etc/apache2/envvars \
&& apache2 -t \ && apache2 -t \
&& echo '# Prepare starter scripts' \ && echo '# Prepare starter scripts with apache running in foreground to stay active!' \
&& echo "#!/bin/bash\nservice mysql start && service apache2 start" >/usr/local/UCNEbase_web.git/conf/starter \ && echo "#!/bin/bash\nservice mysql start && /usr/sbin/apache2ctl -D FOREGROUND" >/usr/local/UCNEbase_web.git/conf/starter \
&& chmod a+rx /usr/local/UCNEbase_web.git/conf/starter \ && chmod a+rx /usr/local/UCNEbase_web.git/conf/starter \
&& echo '# CLEANING' \ && echo '# CLEANING' \
&& echo '## So try to remove manually useless stuff' \ && echo '## So try to remove manually useless stuff' \
...@@ -71,7 +71,7 @@ RUN echo '# OS update' \ ...@@ -71,7 +71,7 @@ RUN echo '# OS update' \
ENV LC_ALL="C" ENV LC_ALL="C"
HEALTHCHECK CMD echo ....... || exit 1 HEALTHCHECK CMD ps aux | grep apache2 | grep start || exit 1
# Expose apache port # Expose apache port
EXPOSE 8081 EXPOSE 8081
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment