mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
36 lines
1.8 KiB
Docker
36 lines
1.8 KiB
Docker
FROM php:8.2-fpm
|
|
|
|
WORKDIR "/var/www/html"
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
curl \
|
|
ca-certificates \
|
|
gnupg \
|
|
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 exif sqlite3 gettext bcmath csv event imap inotify mcrypt redis \
|
|
&& docker-php-ext-enable xdebug \
|
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
|
&& mkdir -p /etc/apt/keyrings \
|
|
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
|
&& NODE_MAJOR=18 \
|
|
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
|
|
&& apt-get update \
|
|
&& 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"]
|