Skip to content

Commit dbbfc60

Browse files
author
glenn
committed
Built. Ran.
1 parent 997ee30 commit dbbfc60

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

Dockerfile

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,41 @@
1-
FROM ubuntu:latest
2-
MAINTAINER John Fink <[email protected]>
3-
RUN apt-get update # Wed Oct 30 10:03:05 EDT 2013
1+
# Wordpress (latest)
2+
#
3+
# forked from jbfink/docker-wordpress
4+
5+
FROM ubuntu:latest
6+
MAINTAINER Glenn Powers "[email protected]"
7+
8+
# Get ping
9+
RUN apt-get install ping
10+
11+
# Copy the files into the container
12+
ADD ./apt-proxy-check.sh /tmp/
13+
14+
RUN chmod 755 /tmp/apt-proxy-check.sh
15+
16+
# Check for a local apt-cache
17+
RUN /tmp/apt-proxy-check.sh
18+
19+
# Configure apt
20+
RUN cat /etc/apt/sources.list
21+
RUN echo 'deb http://us.archive.ubuntu.com/ubuntu/ precise universe' >> /etc/apt/sources.list
22+
23+
# Update Apt
24+
RUN apt-get update
25+
26+
# Update System
427
RUN apt-get -y upgrade
28+
29+
# Install Prereqs
530
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-client mysql-server apache2 libapache2-mod-php5 pwgen python-setuptools vim-tiny php5-mysql openssh-server sudo
631
RUN easy_install supervisor
32+
33+
# Install files
734
ADD ./start.sh /start.sh
835
ADD ./foreground.sh /etc/apache2/foreground.sh
936
ADD ./supervisord.conf /etc/supervisord.conf
37+
38+
# Configure
1039
RUN echo %sudo ALL=NOPASSWD: ALL >> /etc/sudoers
1140
RUN rm -rf /var/www/
1241
ADD http://wordpress.org/latest.tar.gz /wordpress.tar.gz
@@ -17,6 +46,10 @@ RUN chmod 755 /start.sh
1746
RUN chmod 755 /etc/apache2/foreground.sh
1847
RUN mkdir /var/log/supervisor/
1948
RUN mkdir /var/run/sshd
49+
50+
# Expose Ports
2051
EXPOSE 80
2152
EXPOSE 22
53+
54+
# Add start command
2255
CMD ["/bin/bash", "/start.sh"]

0 commit comments

Comments
 (0)