Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-learn
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Ebad Sheikh
docker-learn
Commits
18835153
Commit
18835153
authored
Jan 22, 2021
by
Ebad Sheikh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first commit
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
000-default.conf
000-default.conf
+20
-0
Dockerfile
Dockerfile
+18
-0
No files found.
000-default.conf
0 → 100644
View file @
18835153
<
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
>
Dockerfile
0 → 100644
View file @
18835153
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"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment