-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-php8_2
27 lines (21 loc) · 1020 Bytes
/
Dockerfile-php8_2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM php:8.2-fpm-buster
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
mv composer.phar /usr/local/bin/composer
RUN apt-get update && \
apt-get install -y zlib1g-dev libpng-dev libjpeg62-turbo-dev libfreetype6-dev libzip-dev git libicu-dev zip
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
RUN docker-php-ext-install -j$(nproc) gd
RUN docker-php-ext-install zip bcmath pdo pdo_mysql gettext exif intl
USER root
RUN apt-get update &&\
apt-get install -y --no-install-recommends gnupg &&\
curl -sL https://deb.nodesource.com/setup_23.x | bash - &&\
apt-get update &&\
apt-get install -y --no-install-recommends nodejs
RUN usermod -u 1000 www-data
WORKDIR /app
ENV PATH="$PATH:./node_modules/.bin"
RUN apt-get update && apt-get install -y --no-install-recommends supervisor
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]