|  | @@ -5,6 +5,7 @@ RUN mkdir -p /app/code
 | 
	
		
			
				|  |  |  WORKDIR /app/code
 | 
	
		
			
				|  |  |  RUN curl -L http://wordpress.org/wordpress-4.4.1.tar.gz | tar -xz --strip-components 1 -f -
 | 
	
		
			
				|  |  |  RUN mv /app/code/wp-content /app/code/wp-content-vanilla && ln -s /app/data/wp-content /app/code/wp-content
 | 
	
		
			
				|  |  | +RUN ln -s /app/data/htaccess /app/code/.htaccess
 | 
	
		
			
				|  |  |  ADD wp-config.php.template /app/code/wp-config.php.template
 | 
	
		
			
				|  |  |  ADD start.sh /app/code/start.sh
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -35,6 +36,7 @@ RUN echo "Listen 8000" > /etc/apache2/ports.conf
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  # configure mod_php
 | 
	
		
			
				|  |  |  RUN a2enmod php5
 | 
	
		
			
				|  |  | +RUN a2enmod rewrite
 | 
	
		
			
				|  |  |  RUN sed -e 's/upload_max_filesize = .*/upload_max_filesize = 8M/' \
 | 
	
		
			
				|  |  |          -e 's,;session.save_path.*,session.save_path = "/run/wordpress/sessions",' \
 | 
	
		
			
				|  |  |          -i /etc/php5/apache2/php.ini
 |