forked from codeigniter4projects/website
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
15 lines (14 loc) · 971 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM php:8-fpm-alpine
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add icu icu-dev \
&& docker-php-ext-configure mysqli \
&& docker-php-ext-install -j$(nproc) mysqli \
&& docker-php-ext-configure intl \
&& docker-php-ext-install -j$(nproc) intl \
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
&& sed -i 's/listen = 9000/listen = 127.0.0.1:9099/g' /usr/local/etc/php-fpm.d/zz-docker.conf \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& mv composer.phar /usr/local/bin/composer