File tree Expand file tree Collapse file tree 1 file changed +36
-3
lines changed Expand file tree Collapse file tree 1 file changed +36
-3
lines changed Original file line number Diff line number Diff line change 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
4
27
RUN apt-get -y upgrade
28
+
29
+ # Install Prereqs
5
30
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
6
31
RUN easy_install supervisor
32
+
33
+ # Install files
7
34
ADD ./start.sh /start.sh
8
35
ADD ./foreground.sh /etc/apache2/foreground.sh
9
36
ADD ./supervisord.conf /etc/supervisord.conf
37
+
38
+ # Configure
10
39
RUN echo %sudo ALL=NOPASSWD: ALL >> /etc/sudoers
11
40
RUN rm -rf /var/www/
12
41
ADD http://wordpress.org/latest.tar.gz /wordpress.tar.gz
@@ -17,6 +46,10 @@ RUN chmod 755 /start.sh
17
46
RUN chmod 755 /etc/apache2/foreground.sh
18
47
RUN mkdir /var/log/supervisor/
19
48
RUN mkdir /var/run/sshd
49
+
50
+ # Expose Ports
20
51
EXPOSE 80
21
52
EXPOSE 22
53
+
54
+ # Add start command
22
55
CMD ["/bin/bash" , "/start.sh" ]
You can’t perform that action at this time.
0 commit comments