mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 08:53:05 +03:00
29 lines
1.3 KiB
Docker
29 lines
1.3 KiB
Docker
FROM php:8.1-fpm
|
|
|
|
WORKDIR "/var/www/html"
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y \
|
|
git \
|
|
zip \
|
|
unzip \
|
|
&& curl -sSL https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - | sh -s \
|
|
curl gd intl ldap mbstring mysqli odbc pdo pdo_mysql soap sockets xml zip xdebug \
|
|
&& docker-php-ext-enable xdebug \
|
|
&& 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 \
|
|
&& apt-get install -q -y ssmtp mailutils \
|
|
&& echo "hostname=localhost.localdomain" > /etc/ssmtp/ssmtp.conf \
|
|
&& echo "root=root@example.org" >> /etc/ssmtp/ssmtp.conf \
|
|
&& echo "mailhub=mailpit:1025" >> /etc/ssmtp/ssmtp.conf \
|
|
&& echo "sendmail_path=/usr/sbin/ssmtp -t" >> /usr/local/etc/php/conf.d/php-sendmail.ini \
|
|
&& 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 \
|
|
&& apt-get -y autoremove \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
CMD ["bash", "docker/php-fpm/start-container"]
|