-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (36 loc) · 997 Bytes
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM php:5.6-apache
MAINTAINER James Carlos <[email protected]>
# prevent debian errors
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm
# Install supplimentary programs
RUN apt-get update && apt-get install -y -qq --no-install-recommends \
curl \
git \
wget \
build-essential \
unzip \
rsync \
python-software-properties \
software-properties-common \
libmcrypt-dev \
libxml2-dev && \
docker-php-ext-install \
pdo \
pdo_mysql \
mysqli \
iconv \
mcrypt \
bcmath \
mbstring && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /etc/apache2/sites-enabled/* /etc/apache2/sites-available/* && \
a2enmod deflate rewrite ssl proxy_http
COPY php.ini /usr/local/etc/php/
RUN cd /var/www/html && \
wget https://github.com/justinhagstrom/AutoIndex/archive/master.zip && \
unzip master.zip && \
mv AutoIndex-master/* . && \
rm -rf AutoIndex-master && \
rm master.zip
EXPOSE 80 443