mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 03:52:21 +03:00
26 lines
1.1 KiB
Docker
26 lines
1.1 KiB
Docker
FROM php:8.0-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@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 \
|
|
&& apt-get -y autoremove \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
CMD ["bash", "docker/php-fpm/start-container"]
|