Alpine-Php

FROM php:7.1-fpm-alpine

RUN apk add --update --no-cache libgd libpng-dev libjpeg-turbo-dev freetype-dev curl-dev \
    && docker-php-ext-install -j$(nproc) curl pdo_mysql mysqli gd opcache mbstring 

RUN apk add tzdata \
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && apk del tzdata \
    && rm -rf  /var/cache/apk/*

Last updated