-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (28 loc) · 897 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
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 sed -i -e 's/\r$//' /usr/bin/httpd-foreground \
&& chmod 755 /usr/bin/httpd-foreground
EXPOSE 80
ENTRYPOINT ["/usr/bin/httpd-foreground"]