forked from jeffutter/wordpress-hhvm-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 984 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:14.04
MAINTAINER Jeffery Utter "[email protected]"
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN locale-gen $LANG;
echo "LANG=\"${LANG}\"" > /etc/default/locale;
dpkg-reconfigure locales
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget ;\
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | apt-key add - ;\
echo deb http://dl.hhvm.com/ubuntu trusty main | tee /etc/apt/sources.list.d/hhvm.list ;\
apt-get update ;\
apt-get install -y hhvm-fastcgi nginx
RUN adduser --disabled-login --gecos 'Wordpress' wordpress
RUN cd /home/wordpress ;\
wget http://wordpress.org/latest.tar.gz; tar -xvzf latest.tar.gz ;\
rm latest.tar.gz
EXPOSE 80
ADD nginx/nginx.conf /etc/nginx/nginx.conf
ADD start.sh /start.sh
RUN chmod 755 /start.sh
ADD wordpress/wp-config.php /home/wordpress/
ADD wordpress/production-config.php /home/wordpress/
RUN chown wordpress:wordpress /home/wordpress/*.php
CMD ["/start.sh"]