-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM php:8.1 | ||
|
||
RUN curl -o /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar \ | ||
&& chmod +x /usr/local/bin/composer | ||
|
||
# hadolint ignore=DL3008 | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
cron \ | ||
git \ | ||
icu-devtools \ | ||
jq \ | ||
libfreetype6-dev libicu-dev libjpeg62-turbo-dev libpng-dev librsvg2-bin libsasl2-dev libssl-dev libwebp-dev libxpm-dev libzip-dev \ | ||
unzip \ | ||
vim \ | ||
zlib1g-dev \ | ||
&& apt-get clean \ | ||
&& apt-get autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini \ | ||
&& pecl install --configureoptions='enable-redis-igbinary="yes" enable-redis-lzf="yes" enable-redis-zstd="yes"' igbinary zstd redis \ | ||
&& pecl clear-cache \ | ||
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm \ | ||
&& docker-php-ext-install gd intl pdo_mysql pdo_pgsql zip \ | ||
&& docker-php-ext-enable igbinary opcache redis xdebug zstd | ||
|
||
RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ \ | ||
&& sed -i 's/[a-z]\+.debian.org/mirrors.cloud.tencent.com/g' /etc/apt/sources.list |