|
| 1 | +FROM dockette/alpine:edge |
| 2 | + |
| 3 | +LABEL maintainer= "Milan Sulc <[email protected]>" |
| 4 | + |
| 5 | +ADD conf/php.ini /etc/php85/conf.d/999-php.ini |
| 6 | + |
| 7 | +ENV PHP_DIR=/usr/bin |
| 8 | +ENV PHP_BIN=$PHP_DIR/php |
| 9 | +ENV PHP8_BIN=$PHP_DIR/php85 |
| 10 | +ENV PHPXD_BIN=$PHP_DIR/phpxd |
| 11 | +ENV COMPOSER_DIR=/usr/bin/ |
| 12 | +ENV COMPOSER_BIN=$COMPOSER_DIR/composer |
| 13 | +ENV TZ=Europe/Prague |
| 14 | +ENV LD_PRELOAD="/usr/lib/preloadable_libiconv.so php" |
| 15 | + |
| 16 | +RUN echo '@community http://dl-cdn.alpinelinux.org/alpine/edge/community/' >> /etc/apk/repositories && \ |
| 17 | + # DEPENDENCIES ############################################################# |
| 18 | + apk update && \ |
| 19 | + apk upgrade && \ |
| 20 | + apk --no-cache add \ |
| 21 | + bash \ |
| 22 | + git \ |
| 23 | + ca-certificates \ |
| 24 | + curl \ |
| 25 | + openssh \ |
| 26 | + tzdata \ |
| 27 | + make \ |
| 28 | + direnv \ |
| 29 | + gnu-libiconv@community && \ |
| 30 | + # PHP ###################################################################### |
| 31 | + apk --no-cache add \ |
| 32 | + php85-bcmath@community \ |
| 33 | + php85-bz2@community \ |
| 34 | + php85-calendar@community \ |
| 35 | + php85-cgi@community \ |
| 36 | + php85-ctype@community \ |
| 37 | + php85-curl@community \ |
| 38 | + php85-dom@community \ |
| 39 | + php85-exif@community \ |
| 40 | + php85-fileinfo@community \ |
| 41 | + php85-gd@community \ |
| 42 | + php85-gettext@community \ |
| 43 | + php85-iconv@community \ |
| 44 | + php85-imap@community \ |
| 45 | + php85-intl@community \ |
| 46 | + php85-ldap@community \ |
| 47 | + php85-mbstring@community \ |
| 48 | + php85-mysqli@community \ |
| 49 | + php85-mysqlnd@community \ |
| 50 | + php85-openssl@community \ |
| 51 | + php85-pcntl@community \ |
| 52 | + php85-pdo_mysql@community \ |
| 53 | + php85-pdo_pgsql@community \ |
| 54 | + php85-pdo_sqlite@community \ |
| 55 | + php85-pdo@community \ |
| 56 | + php85-pecl-amqp@community \ |
| 57 | + php85-pecl-apcu@community \ |
| 58 | + php85-pecl-imagick@community \ |
| 59 | + php85-pecl-mailparse@community \ |
| 60 | + php85-pecl-memcache@community \ |
| 61 | + php85-pecl-memcached@community \ |
| 62 | + php85-pgsql@community \ |
| 63 | + php85-phar@community \ |
| 64 | + php85-posix@community \ |
| 65 | + php85-redis@community \ |
| 66 | + php85-session@community \ |
| 67 | + php85-simplexml@community \ |
| 68 | + php85-soap@community \ |
| 69 | + php85-sodium@community \ |
| 70 | + php85-sqlite3@community \ |
| 71 | + php85-tokenizer@community \ |
| 72 | + php85-xdebug@community \ |
| 73 | + php85-xml@community \ |
| 74 | + php85-xmlreader@community \ |
| 75 | + php85-xmlwriter@community \ |
| 76 | + php85-xsl@community \ |
| 77 | + php85-zip@community \ |
| 78 | + php85-zlib@community \ |
| 79 | + php85@community \ |
| 80 | + && \ |
| 81 | + sed -i -- 's/zend/;zend/g' /etc/php85/conf.d/50_xdebug.ini && \ |
| 82 | + echo "php -dzend_extension=xdebug.so \$@" >> $PHPXD_BIN && \ |
| 83 | + chmod +x $PHPXD_BIN && \ |
| 84 | + ln -s $PHP8_BIN $PHP_BIN && \ |
| 85 | + # COMPOSER ################################################################# |
| 86 | + curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --2 && \ |
| 87 | + # CLEAN UP ################################################################# |
| 88 | + rm -rf /var/cache/apk/* /tmp/* |
| 89 | + |
| 90 | +CMD ["php"] |
0 commit comments