-
Notifications
You must be signed in to change notification settings - Fork 63
/
Dockerfile
31 lines (27 loc) · 835 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
FROM ubuntu:trusty
ENV DEBIAN_FRONTEND noninteractive
COPY --chown=www-data:www-data penlab /app/
RUN set -eux; \
apt-get update; \
apt-get install -yq \
apache2 \
libapache2-mod-php5 \
php5-gd \
php5-curl \
php-pear \
php5-dev \
libcurl4-openssl-dev \
expect-dev \
php5-sqlite \
php-apc ; \
pecl install expect; \
echo "extension=expect.so" >> /etc/php5/apache2/php.ini; \
rm -rf /var/lib/apt/lists/*; \
echo "ServerName localhost" >> /etc/apache2/apache2.conf; \
sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini; \
rm -fr /var/www/html && ln -s /app /var/www/html; \
service apache2 restart
COPY httpd-foreground /usr/bin/
RUN chmod 755 /usr/bin/httpd-foreground
EXPOSE 80
CMD ["/usr/bin/httpd-foreground"]