Dockerfile 855 B

123456789101112131415161718192021
  1. FROM alpine:latest
  2. # RUN apk -U --no-cache add \
  3. # php7-fpm php7-gd php7-intl php7-json php7-pecl-redis php7-opcache php7-mysqli php7-pdo_mysql php7-pgsql php7-pdo_pgsql php7-sqlite3 \
  4. # php7-pdo_sqlite php7-mbstring php7-xml php7-phar php7-iconv
  5. RUN apk -U --no-cache add \
  6. php7-fpm php7-gd php7-intl php7-json php7-pecl-redis php7-opcache php7-pgsql php7-pdo_pgsql \
  7. php7-mbstring php7-xml php7-phar php7-iconv php7-ctype php7-fileinfo php7-dom php7-pecl-apcu php7-openssl \
  8. && addgroup -g 1000 www-data \
  9. && adduser -D -G www-data -u 1000 www-data
  10. COPY www.conf /etc/php7/php-fpm.d/www.conf
  11. # COPY opcache.ini /usr/local/etc/php/conf.d/opcache.ini
  12. COPY date.ini /etc/php7/conf.d/datetimezone.ini
  13. # COPY session.ini /etc/php7/conf.d/session.ini
  14. # COPY redis.ini /usr/local/etc/php/conf.d/redis.ini
  15. VOLUME /socks
  16. CMD ["php-fpm7", "-F"]