-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
87 lines (82 loc) · 2.83 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
FROM dockette/alpine:3.14
LABEL maintainer="Milan Sulc <sulcmil@gmail.com>"
ADD conf/php.ini /etc/php7/conf.d/999-php.ini
ENV PHP_DIR=/usr/bin
ENV PHP_BIN=$PHP_DIR/php
ENV PHPXD_BIN=$PHP_DIR/phpxd
ENV COMPOSER_DIR=/usr/bin/
ENV COMPOSER_BIN=$COMPOSER_DIR/composer
ENV TZ=Europe/Prague
ENV LD_PRELOAD="/usr/lib/preloadable_libiconv.so php"
RUN echo '@community http://dl-cdn.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \
# DEPENDENCIES #############################################################
apk update && \
apk upgrade && \
apk --no-cache add \
bash \
git \
ca-certificates \
curl \
openssh \
tzdata \
make \
direnv \
gnu-libiconv@community && \
# PHP ######################################################################
apk --no-cache add \
php7@community \
php7-apcu@community \
php7-bcmath@community \
php7-bz2@community \
php7-calendar@community \
php7-cgi@community \
php7-ctype@community \
php7-curl@community \
php7-dom@community \
php7-exif@community \
php7-fileinfo@community \
php7-gd@community \
php7-gettext@community \
php7-iconv@community \
php7-imagick@community \
php7-imap@community \
php7-intl@community \
php7-json@community \
php7-ldap@community \
php7-mbstring@community \
php7-pecl-mcrypt@community \
php7-memcache@community \
php7-memcached@community \
php7-mysqli@community \
php7-mysqlnd@community \
php7-openssl@community \
php7-pdo_mysql@community \
php7-pdo_pgsql@community \
php7-pdo_sqlite@community \
php7-pdo@community \
php7-pgsql@community \
php7-phar@community \
php7-posix@community \
php7-redis@community \
php7-session@community \
php7-simplexml@community \
php7-soap@community \
php7-sodium@community \
php7-sqlite3@community \
php7-tokenizer@community \
php7-xdebug@community \
php7-xml@community \
php7-xmlreader@community \
php7-xmlrpc@community \
php7-xmlwriter@community \
php7-xsl@community \
php7-zip@community \
php7-zlib@community && \
sed -i -- 's/zend/;zend/g' /etc/php7/conf.d/50_xdebug.ini && \
echo "php -dzend_extension=xdebug.so \$@" >> $PHPXD_BIN && \
chmod +x $PHPXD_BIN && \
# COMPOSER #################################################################
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --2 && \
# CLEAN UP #################################################################
rm -rf /var/cache/apk/* /tmp/*
CMD ["php"]