-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 699 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 699 Bytes
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
FROM tutum/apache-php
MAINTAINER Borja Burgos <borja@tutum.co>
# Install packages
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-client
# Download latest version of Wordpress into /app
RUN rm -fr /app && git clone https://github.com/WordPress/WordPress.git /app
# Add wp-config with info for Wordpress to connect to DB
ADD wp-config.php /app/wp-config.php
RUN chmod 644 /app/wp-config.php
# Add script to create 'wordpress' DB
ADD run.sh /run.sh
RUN chmod 755 /*.sh
# Modify permissions to allow plugin upload
RUN chmod -R 777 /app/wp-content
ENV WORDPRESS_DB_NAME wordpress
ENV WORDPRESS_DB_USER admin
ENV WORDPRESS_DB_PASS CHANGEME
EXPOSE 80
CMD ["/run.sh"]