-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 755 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
FROM debian:wheezy
MAINTAINER Arulraj Venni <me@arulraj.net>
# Install Apache, PHP5 and speedtest mini zip
RUN apt-get update -qq \
&& apt-get install -y wget unzip apache2 php5 php5-mysql php5-gd php5-mcrypt \
&& wget http://c.speedtest.net/mini/mini.zip -O /tmp/mini.zip \
&& mkdir -p /var/www/mini \
&& unzip /tmp/mini.zip -d /var/www/ \
&& cd /var/www/mini \
&& mv index-php.html index.html \
&& mv * ../ \
&& echo "ServerName localhost" | tee /etc/apache2/conf.d/fqdn \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/* /tmp/* /var/tmp/*
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# Ports
EXPOSE 80
CMD [ "speedtest-server" ]