22 lines
817 B
Docker
22 lines
817 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 && \
|
|
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
|
|
|
|
WORKDIR /var/www
|
|
|
|
COPY ./docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
CMD ["/usr/local/bin/entrypoint.sh"] |