2023-01-21 14:41:05 +03:00
|
|
|
FROM php:8.0-fpm
|
|
|
|
|
2023-01-17 11:10:21 +03:00
|
|
|
WORKDIR "/var/www/html"
|
|
|
|
|
2023-01-21 14:41:05 +03:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
2023-01-17 11:10:21 +03:00
|
|
|
git \
|
2023-01-21 14:41:05 +03:00
|
|
|
zip \
|
|
|
|
unzip \
|
|
|
|
&& curl -sSL https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - | sh -s \
|
2023-01-25 10:48:44 +03:00
|
|
|
curl gd intl ldap mbstring mysqli odbc pdo pdo_mysql soap sockets xml zip xdebug \
|
|
|
|
&& docker-php-ext-enable xdebug \
|
2023-01-21 14:41:05 +03:00
|
|
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
|
|
|
&& curl -sLS https://deb.nodesource.com/setup_18.x | bash - \
|
|
|
|
&& apt-get install -y nodejs \
|
|
|
|
&& npm install -g npm \
|
2023-01-25 10:48:44 +03:00
|
|
|
&& apt-get install -q -y ssmtp mailutils \
|
|
|
|
&& echo "hostname=localhost.localdomain" > /etc/ssmtp/ssmtp.conf \
|
|
|
|
&& echo "root=root@presta.com" >> /etc/ssmtp/ssmtp.conf \
|
|
|
|
&& echo "mailhub=mailhog:1025" >> /etc/ssmtp/ssmtp.conf \
|
|
|
|
&& echo "sendmail_path=/usr/sbin/ssmtp -t" >> /usr/local/etc/php/conf.d/php-sendmail.ini \
|
2023-01-21 14:41:05 +03:00
|
|
|
&& apt-get -y autoremove \
|
|
|
|
&& apt-get clean \
|
2023-01-25 10:48:44 +03:00
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2023-01-21 14:41:05 +03:00
|
|
|
|
|
|
|
CMD ["bash", "docker/php-fpm/start-container"]
|