FROM crosstime1986/php53-fpm

#WORKDIR /wwwroot

#COPY . ./wwwroot

LABEL maintainer="king"

# set timezome
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# Install package and PHP Core extensions
#RUN apt-key update \
#    && apt-get update \
#    && apt-get install -y \
#        git \
#        libfreetype6-dev \
#        libjpeg62-turbo-dev \
#        libpng-dev \
#	&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
#	&& docker-php-ext-install -j$(nproc) gd \
#        && docker-php-ext-install zip \
#        && docker-php-ext-install pdo_mysql \
#        && docker-php-ext-install opcache \
#        && docker-php-ext-install mysqli \
#        && rm -r /var/lib/apt/lists/*

# Install Composer
#ENV COMPOSER_HOME /root/composer
#RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
#ENV PATH $COMPOSER_HOME/vendor/bin:$PATH

#WORKDIR /var/www/html

# Write Permission
#RUN usermod -u 1000 www-data
