This repository has been archived on 2025-06-09. You can view files and clone it, but cannot push or open issues or pull requests.

27 lines
859 B
Docker

FROM php:8.3-fpm
RUN apt-get update && apt-get install -y \
git unzip zip curl libpng-dev libjpeg62-turbo-dev libfreetype6-dev \
libonig-dev libxml2-dev libzip-dev libpq-dev libicu-dev libxslt-dev \
libsqlite3-dev sqlite3 cron supervisor bash nano \
default-mysql-client \
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd pdo_mysql zip bcmath intl xsl pcntl sockets
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY ./data/html/ /var/www/html/
RUN chown -R www-data:www-data /var/www/html
WORKDIR /var/www/html
COPY ./docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["docker-php-entrypoint", "php-fpm"]