Fetching contributors…
Cannot retrieve contributors at this time
31 lines (18 sloc) 813 Bytes
FROM ubuntu:14.04
LABEL maintainer="Mark Sutherland <>"
ENV root_password root
ENV web_host web_server
# Install MySQL
RUN echo mysql-server mysql-server/root_password password ${root_password} | sudo debconf-set-selections
RUN echo mysql-server mysql-server/root_password_again password ${root_password} | sudo debconf-set-selections
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
# Allow it to listen from outer world
RUN sed -i -e"s/^bind-address\s*=\s* =" /etc/mysql/my.cnf
# Copy the scripts
ADD files/ /
ADD files/elgg_db.dump /elgg_db.dump
ADD /etc/
RUN chown root:root /etc/
RUN chmod 700 /etc/
ENTRYPOINT ["/etc/"]