You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

42 lines
935 B

FROM php:7.4-fpm
# user mapping
ARG HOME
ARG USER
ARG UID
ARG GID
# zip
RUN apt-get update && apt-get install -y \
libzip-dev \
zlib1g-dev
RUN docker-php-ext-install zip
RUN apt-get install -y git
RUN docker-php-ext-install \
pcntl \
mysqli \
pdo_mysql
# APCU
RUN pecl install apcu-5.1.17 && docker-php-ext-enable apcu
# opcache
RUN docker-php-ext-install opcache
COPY opcache.ini /usr/local/etc/php/conf.d/opcache.ini
# xdebug
RUN pecl install xdebug-2.9.5 && docker-php-ext-enable xdebug
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
RUN groupadd --gid ${GID} ${USER} \
&& useradd --uid ${UID} --gid ${GID} --shell /bin/bash --home-dir ${HOME} ${USER}
# composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --version=2.0.9 --install-dir=/usr/local/bin --filename=composer
USER ${USER}
WORKDIR /var/www/localhost/htdocs/current