Dockerfile 909 B

12345678910111213141516171819202122232425
  1. FROM alpine:3.18
  2. # RUN addgroup -g 1000 www-data \
  3. # && adduser -D -G www-data -u 1000 www-data \
  4. RUN adduser -D -G www-data -u 1000 www-data \
  5. && apk -U --no-cache add shadow \
  6. php82-fpm php82-gd php82-intl php82-json php82-pecl-redis php82-opcache php82-pgsql php82-pdo_pgsql \
  7. php82-mysqlnd php82-pdo_mysql \
  8. php82-mbstring php82-xml php82-phar php82-iconv php82-ctype php82-fileinfo php82-dom php82-pecl-apcu php82-openssl \
  9. && groupmod --gid 1000 www-data
  10. # RUN curl -sS https://getcomposer.org/installer | php -- \
  11. # --install-dir=/usr/bin --filename=composer && chmod +x /usr/bin/composer
  12. COPY www.conf /etc/php82/php-fpm.d/www.conf
  13. # COPY opcache.ini /usr/local/etc/php/conf.d/opcache.ini
  14. COPY date.ini /etc/php82/conf.d/datetimezone.ini
  15. # COPY session.ini /etc/php7/conf.d/session.ini
  16. # COPY redis.ini /usr/local/etc/php/conf.d/redis.ini
  17. VOLUME /socks
  18. CMD ["php-fpm82", "-F"]