forked from dell-cloud-marketplace/docker-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 794 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 794 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
28
29
FROM dell/lamp-base:1.0
MAINTAINER Dell Cloud Market Place <Cloud_Marketplace@dell.com>
# Download Wordpress 4.0 into /app
RUN rm -fr /var/www/html
RUN rm -fr /app && git clone -b 4.0-branch --single-branch --depth=1 \
https://github.com/WordPress/WordPress.git /app
# Configure Wordpress to connect to local DB
ADD wp-config.php /app/wp-config.php
# Add htaccess
ADD .htaccess /app/.htaccess
# Override Apache configuration
ADD apache_default /etc/apache2/sites-available/000-default.conf
# Add scripts and make them executable.
ADD create_mysql_admin_user.sh /create_mysql_admin_user.sh
ADD create_db.sh /create_db.sh
ADD run.sh /run.sh
RUN chmod +x /*.sh
# Add volumes for MySQL and the application.
VOLUME ["/var/lib/mysql", "/var/www/html"]
EXPOSE 80 3306 443
CMD ["/run.sh"]