Commit 18835153 authored by Ebad Sheikh's avatar Ebad Sheikh

first commit

parents
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/wordpress
ServerName example.com
ServerAlias www.example.com
<Directory /var/www/html/wordpress>
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
</IfModule>
</VirtualHost>
FROM ubuntu:latest
LABEL maintainer="mebad@nisum.com"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y apache2
RUN apt-get install -y php libapache2-mod-php php-mysql
RUN apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/*
RUN wget http://wordpress.org/latest.tar.gz -P /var/www/html/
RUN tar xzvf /var/www/html/latest.tar.gz -C /var/www/html/
RUN rm /etc/apache2/sites-available/000-default.conf
RUN mv /var/www/html/wordpress/wp-config-sample.php var/www/html/wordpress/wp-config.php
COPY 000-default.conf /etc/apache2/sites-available/
EXPOSE 80
#CMD apachectl -D FOREGROUND
#ENTRYPOINT /etc/init.d/apachectl start
CMD ["/usr/sbin/apache2ctl", "-DFOREGROUND"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment