-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
88 lines (83 loc) · 2.91 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
FROM dockette/alpine:3.21
LABEL maintainer="Milan Sulc <sulcmil@gmail.com>"
ADD conf/php.ini /etc/php83/conf.d/999-php.ini
ENV PHP_DIR=/usr/bin
ENV PHP_BIN=$PHP_DIR/php
ENV PHP8_BIN=$PHP_DIR/php83
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.21/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 \
php83-bcmath@community \
php83-bz2@community \
php83-calendar@community \
php83-cgi@community \
php83-ctype@community \
php83-curl@community \
php83-dom@community \
php83-exif@community \
php83-fileinfo@community \
php83-gd@community \
php83-gettext@community \
php83-iconv@community \
php83-imap@community \
php83-intl@community \
php83-ldap@community \
php83-mbstring@community \
php83-mysqli@community \
php83-mysqlnd@community \
php83-openssl@community \
php83-pcntl@community \
php83-pdo_mysql@community \
php83-pdo_pgsql@community \
php83-pdo_sqlite@community \
php83-pdo@community \
php83-pecl-apcu@community \
php83-pecl-imagick@community \
php83-pecl-mailparse@community \
php83-pecl-memcache@community \
php83-pecl-memcached@community \
php83-pgsql@community \
php83-phar@community \
php83-posix@community \
php83-redis@community \
php83-session@community \
php83-simplexml@community \
php83-soap@community \
php83-sodium@community \
php83-sqlite3@community \
php83-tokenizer@community \
php83-xdebug@community \
php83-xml@community \
php83-xmlreader@community \
php83-xmlwriter@community \
php83-xsl@community \
php83-zip@community \
php83-zlib@community \
php83@community \
&& \
sed -i -- 's/zend/;zend/g' /etc/php83/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"]