-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
30 lines (27 loc) · 1.21 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
FROM php:8.1.6-cli-alpine
ARG PHP_XDEBUG_VERSION=3.1.3
RUN apk update && apk add --no-cache $PHPIZE_DEPS \
&& apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \
curl zip libzip-dev gmp-dev \
imap-dev openssl-dev git zsh \
&& docker-php-ext-configure gd --enable-gd \
--with-freetype \
--with-jpeg \
--with-webp \
&& docker-php-ext-install gd \
&& docker-php-ext-configure bcmath && docker-php-ext-install bcmath \
&& docker-php-ext-configure zip --with-zip && docker-php-ext-install zip \
&& docker-php-ext-install gmp \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-imap-ssl \
&& docker-php-ext-install imap \
&& pecl install xdebug-${PHP_XDEBUG_VERSION} && docker-php-ext-enable xdebug \
&& apk del $PHPIZE_DEPS \
zlib-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev openssl-dev
# Install composer
ARG COMPOSER_VERSION=2.3.7
RUN curl -sS https://getcomposer.org/installer | php -- \
--filename=composer \
--version=${COMPOSER_VERSION} \
--install-dir=/usr/local/bin
RUN mkdir -m 777 -p /var/composer/
ENV COMPOSER_HOME /var/composer/