mirror of
https://github.com/elyby/accounts.git
synced 2024-11-26 16:52:02 +05:30
Upgrade PHP to the latest version
This commit is contained in:
parent
5b8be60867
commit
26b2168ae3
38
Dockerfile
38
Dockerfile
@ -1,39 +1,17 @@
|
|||||||
FROM php:7.4.15-fpm-alpine3.13 AS app
|
FROM php:7.4.33-fpm-alpine3.16 AS app
|
||||||
|
|
||||||
# bash needed to support wait-for-it script
|
# bash needed to support wait-for-it script
|
||||||
RUN apk add --update --no-cache \
|
RUN apk add --update --no-cache git bash patch openssh dcron \
|
||||||
git \
|
&& curl -sSLf \
|
||||||
bash \
|
-o /usr/local/bin/install-php-extensions \
|
||||||
patch \
|
https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions \
|
||||||
openssh \
|
&& chmod +x /usr/local/bin/install-php-extensions \
|
||||||
dcron \
|
&& install-php-extensions @composer zip pdo_mysql intl pcntl opcache imagick xdebug-^2 \
|
||||||
zlib-dev \
|
|
||||||
libzip-dev \
|
|
||||||
icu-dev \
|
|
||||||
libintl \
|
|
||||||
imagemagick-dev \
|
|
||||||
imagemagick \
|
|
||||||
&& docker-php-ext-install \
|
|
||||||
zip \
|
|
||||||
pdo_mysql \
|
|
||||||
intl \
|
|
||||||
pcntl \
|
|
||||||
opcache \
|
|
||||||
&& apk add --no-cache --virtual ".phpize-deps" $PHPIZE_DEPS \
|
|
||||||
&& yes | pecl install xdebug-2.9.8 \
|
|
||||||
&& yes | pecl install imagick \
|
|
||||||
&& docker-php-ext-enable imagick \
|
|
||||||
&& apk del ".phpize-deps" \
|
|
||||||
&& rm -rf /usr/share/man \
|
|
||||||
&& rm -rf /tmp/* \
|
|
||||||
# Create cron directory
|
# Create cron directory
|
||||||
&& mkdir -p /etc/cron.d \
|
&& mkdir -p /etc/cron.d \
|
||||||
# Install wait-for-it script
|
# Install wait-for-it script
|
||||||
&& curl "https://raw.githubusercontent.com/vishnubob/wait-for-it/81b1373f17855/wait-for-it.sh" -o /usr/local/bin/wait-for-it \
|
&& curl "https://raw.githubusercontent.com/vishnubob/wait-for-it/81b1373f17855/wait-for-it.sh" -o /usr/local/bin/wait-for-it \
|
||||||
&& chmod a+x /usr/local/bin/wait-for-it \
|
&& chmod a+x /usr/local/bin/wait-for-it
|
||||||
# Install composer and global dependencies
|
|
||||||
&& curl "https://getcomposer.org/download/2.0.9/composer.phar" -o /usr/bin/composer \
|
|
||||||
&& chmod a+x /usr/bin/composer
|
|
||||||
# TODO: migrate to the build-pack secrets when they will implement compatibility with the docker-compose
|
# TODO: migrate to the build-pack secrets when they will implement compatibility with the docker-compose
|
||||||
# Feature: https://docs.docker.com/develop/develop-images/build_enhancements/#new-docker-build-secret-information
|
# Feature: https://docs.docker.com/develop/develop-images/build_enhancements/#new-docker-build-secret-information
|
||||||
# Track issues: https://github.com/docker/compose/issues/6358, https://github.com/compose-spec/compose-spec/issues/81
|
# Track issues: https://github.com/docker/compose/issues/6358, https://github.com/compose-spec/compose-spec/issues/81
|
||||||
|
@ -12,7 +12,10 @@
|
|||||||
],
|
],
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"config": {
|
"config": {
|
||||||
"sort-packages": true
|
"sort-packages": true,
|
||||||
|
"allow-plugins": {
|
||||||
|
"cweagans/composer-patches": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.4",
|
"php": "^7.4",
|
||||||
|
Loading…
Reference in New Issue
Block a user