-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 821 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 821 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
27
28
FROM ubuntu:15.10
LABEL maintainer="tdmalone@gmail.com"
# @see https://askubuntu.com/a/91821/421637
RUN sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install --assume-yes --no-install-recommends \
apache2=2.4.12-2ubuntu2.1 \
php5=5.6.11+dfsg-1ubuntu3.4 \
php5-cli=5.6.11+dfsg-1ubuntu3.4 \
libapache2-mod-php5=5.6.11+dfsg-1ubuntu3.4 \
php5-gd=5.6.11+dfsg-1ubuntu3.4 \
php5-mysql=5.6.11+dfsg-1ubuntu3.4 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY vhost.conf /etc/apache2/sites-available/000-default.conf
COPY run.sh /usr/local/bin/run
RUN chmod +x /usr/local/bin/run && \
a2enmod rewrite
EXPOSE 80
VOLUME ["/var/www"]
CMD ["/usr/local/bin/run"]