2024-12-19 20:03:12 +03:00
|
|
|
FROM php:8.4-fpm
|
2023-01-21 14:41:05 +03:00
|
|
|
|
2023-01-17 11:10:21 +03:00
|
|
|
WORKDIR "/var/www/html"
|
|
|
|
|
2023-01-21 14:41:05 +03:00
|
|
|
RUN apt-get update \
|
2023-07-24 10:32:47 +03:00
|
|
|
&& apt-get install -y --no-install-recommends \
|
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 \
|
2024-12-19 20:03:12 +03:00
|
|
|
curl gd intl ldap mbstring mysqli odbc pdo pdo_mysql soap sockets xml zip xdebug exif sqlite3 gettext bcmath csv event imap inotify redis \
|
2023-01-25 10:48:44 +03:00
|
|
|
&& 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 \
|
2024-01-24 19:08:33 +03:00
|
|
|
&& curl -sLS https://deb.nodesource.com/setup_18.x | bash - \
|
2023-01-21 14:41:05 +03:00
|
|
|
&& 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 \
|
2023-07-08 08:31:33 +03:00
|
|
|
&& echo "root=root@example.org" >> /etc/ssmtp/ssmtp.conf \
|
|
|
|
&& echo "mailhub=mailpit:1025" >> /etc/ssmtp/ssmtp.conf \
|
2023-01-25 10:48:44 +03:00
|
|
|
&& echo "sendmail_path=/usr/sbin/ssmtp -t" >> /usr/local/etc/php/conf.d/php-sendmail.ini \
|
2023-07-08 08:31:33 +03:00
|
|
|
&& echo "alias ll=\"ls -al\"" >> /root/.bashrc \
|
|
|
|
&& echo "export XDEBUG_TRIGGER=1" >> /root/.bashrc \
|
|
|
|
&& echo "export PHP_IDE_CONFIG=\"serverName=host.docker.internal\"" >> /root/.bashrc \
|
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"]
|