Commit 3efa2647 authored by Ernesto Rodriguez Ortiz's avatar Ernesto Rodriguez Ortiz
Browse files

Start MySQL and Apache at run

parent ca7eaf62
......@@ -24,7 +24,7 @@ RUN drush dl site_audit -y
# Make mysql listen on the outside
RUN sed -i "s/^bind-address/#bind-address/" /etc/mysql/my.cnf
COPY apache2-foreground /usr/local/bin/
COPY start-servers /usr/local/bin/
WORKDIR /var/www/html
CMD ["apache2-foreground"]
\ No newline at end of file
CMD ["start-servers"]
\ No newline at end of file
set -e
# Start nysql server
/usr/bin/mysqld_safe & sleep 10s
# Apache gets grumpy about PID files pre-existing
rm -f /var/run/apache2/
source /etc/apache2/envvars
exec apache2 -DFOREGROUND
\ No newline at end of file
exec apache2 -DFOREGROUND
Markdown is supported
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