-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 703 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 703 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
FROM tutum/lamp:latest
MAINTAINER Fernando Mayo <fernando@tutum.co>, Feng Honglin <hfeng@tutum.co>
# Install plugins
RUN apt-get update && \
apt-get -y install php5-gd && \
rm -rf /var/lib/apt/lists/*
# Download latest version of Wordpress into /app
RUN rm -fr /app && git clone --depth=1 https://github.com/WordPress/WordPress.git /app
# Configure Wordpress to connect to local DB
ADD wp-config.php /app/wp-config.php
# Modify permissions to allow plugin upload
RUN chown -R www-data:www-data /app/wp-content /var/www/html
# Add database setup script
ADD create_mysql_admin_user.sh /create_mysql_admin_user.sh
ADD create_db.sh /create_db.sh
RUN chmod +x /*.sh
EXPOSE 80 3306
CMD ["/run.sh"]