-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
47 lines (37 loc) · 1.42 KB
/
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
42
43
44
45
46
47
FROM php:7.2-apache
MAINTAINER Shane Mc Cormack <dataforce@dataforce.org.uk>
RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 && \
rm -Rfv /var/lib/apt/lists/* && \
apt-get update && apt-get install -y git unzip libz-dev libglib2.0-dev patchelf libtidy-dev exim4 && \
sed -i 's@local@internet@' /etc/exim4/update-exim4.conf.conf && \
update-exim4.conf && \
echo 'sendmail_path = "/usr/sbin/sendmail -t"' > /usr/local/etc/php/conf.d/mail.ini
COPY Docker/docker-php-v8/prebuild/app/v8-6.8.104.tar.gz /tmp/v8.tar.gz
RUN mkdir -p /opt/v8 && cd /opt/v8 && tar xvf /tmp/v8.tar.gz
RUN for A in /opt/v8/lib/*.so; do patchelf --set-rpath '$ORIGIN' $A; done
RUN docker-php-source extract && \
mkdir -p /tmp/pear && \
cd /tmp/pear && \
pecl bundle v8js && \
cd v8js && \
phpize . && \
./configure --with-v8js=/opt/v8 LDFLAGS="-lstdc++" && \
make && \
make install && \
cd ~ && \
rm -rf /tmp/pear && \
docker-php-ext-enable v8js && \
docker-php-ext-install bcmath && \
docker-php-ext-install pdo_mysql && \
docker-php-ext-install tidy && \
docker-php-source delete && \
rm -r /tmp/* && \
ln -s /usr/local/bin/php /usr/bin/php
WORKDIR /var/www
COPY src /moneytracker
RUN a2enmod rewrite && \
rm -Rfv /var/www/html && \
chown -Rfv www-data: /moneytracker/ /var/www/ && \
ln -s /moneytracker/www /var/www/html && \
cd /moneytracker/
EXPOSE 80