Dockerfile 549 B

123456789
  1. FROM daocloud.io/library/php:7.1-alpine
  2. RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
  3. RUN apk add --no-cache libmcrypt-dev freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev $PHPIZE_DEPS
  4. RUN docker-php-ext-install pdo_mysql gd opcache pcntl bcmath
  5. RUN pecl install xdebug redis \
  6. && docker-php-ext-enable xdebug \
  7. && docker-php-ext-enable redis
  8. RUN apk del --no-cache libmcrypt-dev freetype-dev libpng-dev libjpeg-turbo-dev
  9. RUN rm -rf /tmp/* /usr/local/lib/php/doc/* /var/cache/apk/*