Skip to content

Instantly share code, notes, and snippets.

@sujal
Last active December 20, 2015 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sujal/4dc6ff3a42db2794e40b to your computer and use it in GitHub Desktop.
Save sujal/4dc6ff3a42db2794e40b to your computer and use it in GitHub Desktop.
The dockerfile used to build the production image
FROM wordpress:latest
COPY wordpress/wp-content/themes/ /usr/src/wordpress/wp-content/themes/
RUN chown -R www-data:www-data /usr/src/wordpress/wp-content/themes/*
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -q -q && \
apt-get install apt-utils --yes --force-yes && \
apt-get -y install rsync
ADD apache/default-ssl.conf /etc/apache2/sites-available/default-ssl.conf
RUN a2enmod rewrite
RUN a2enmod ssl
RUN a2ensite default-ssl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment