forked from cmer81/docker-ipboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
95 lines (89 loc) · 2.33 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
FROM registry.cmer.fr/le-monde-des-reptiles/bootstrap/base-app-alpine:latest
ENV WEB_DOCUMENT_ROOT=/app \
WEB_DOCUMENT_INDEX=index.php \
WEB_ALIAS_DOMAIN=*.vm \
WEB_PHP_TIMEOUT=600 \
WEB_PHP_SOCKET=""
ENV WEB_PHP_SOCKET=127.0.0.1:9000
COPY conf/ /opt/docker/
RUN set -x \
&& apk-install \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
pngcrush \
libjpeg-turbo-utils \
optipng \
pngquant \
# Install php (cli/fpm)
php7-fpm \
php7-json \
php7-intl \
php7-curl \
php7-mysqli \
php7-mysqlnd \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-mcrypt \
php7-gd \
php7-imagick \
php7-imap \
php7-bcmath \
php7-soap \
php7-sqlite3 \
php7-bz2 \
php7-calendar \
php7-ctype \
php7-pcntl \
php7-pgsql \
php7-posix \
php7-sockets \
php7-sysvmsg \
php7-sysvsem \
php7-sysvshm \
php7-xmlreader \
php7-exif \
php7-ftp \
php7-gettext \
php7-iconv \
php7-zip \
php7-zlib \
php7-shmop \
php7-wddx \
sqlite \
php7-xmlrpc \
php7-xsl \
geoip \
# php7-ldap \
php7-pecl-memcached \
# php7-redis \
php7-pear \
php7-phar \
php7-openssl \
php7-session \
php7-opcache \
php7-mbstring \
php7-iconv \
php7-apcu \
php7-fileinfo \
php7-simplexml \
php7-tokenizer \
php7-xmlwriter \
nginx \
&& ln -s /usr/sbin/php-fpm7 /usr/sbin/php-fpm \
&& pecl channel-update pecl.php.net \
# Temporarily disable pear due to https://twitter.com/pear/status/1086634389465956352
# && pear channel-update pear.php.net \
# && pear upgrade-all \
&& pear config-set auto_discover 1 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
# PECL workaround, see webdevops/Dockerfile#78
&& sed -i "s/ -n / /" $(which pecl) \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
&& docker-run-bootstrap \
&& docker-image-cleanup
EXPOSE 80 443