Path: blob/master/lab-setup/docker-images/seed-elgg/original/Dockerfile
3032 views
FROM handsonsecurity/seed-server:apache-php ARG DOWNLOAD=/tmp/download ARG WWWDir=/var/www/elgg ARG DataDir=/var/elgg-data # Download the original elgg application RUN mkdir -p $DOWNLOAD \ && curl https://elgg.org/download/elgg-3.3.3.zip --output $DOWNLOAD/elgg-3.3.3.zip \ && unzip $DOWNLOAD/elgg-3.3.3.zip -d /var/www/ \ && mv /var/www/elgg-3.3.3 $WWWDir # Load the elgg data (pictures, etc) COPY elgg/elgg_data.zip $DOWNLOAD RUN mkdir -p $DataDir \ && unzip $DOWNLOAD/elgg_data.zip -d $DataDir \ && chown -R www-data $DataDir \ && chgrp -R www-data $DataDir \ && rm -rf $DOWNLOAD # Enable the Elgg site COPY apache_elgg.conf server_name.conf /etc/apache2/sites-available/ RUN a2ensite server_name.conf \ && a2ensite apache_elgg.conf # Start the Apache server CMD service apache2 start && tail -f /dev/null