Created
January 30, 2017 08:53
-
-
Save pangpond/19e38055926e3957fa52ec74eb4e5a7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.1.1-fpm-alpine | |
MAINTAINER Nathawut Sonraksa <[email protected]> | |
ENV TIMEZONE Asia/Bangkok | |
RUN apk upgrade --update && apk --no-cache add \ | |
autoconf tzdata file g++ gcc binutils isl libatomic libc-dev musl-dev make re2c libstdc++ libgcc libcurl curl-dev binutils-libs mpc1 mpfr3 gmp libgomp coreutils freetype-dev libjpeg-turbo-dev libltdl libmcrypt-dev libpng-dev openssl-dev libxml2-dev expat-dev \ | |
&& docker-php-ext-install -j$(nproc) iconv mysqli pdo pdo_mysql curl bcmath mcrypt mbstring json xml zip opcache \ | |
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | |
&& docker-php-ext-install -j$(nproc) gd | |
# TimeZone | |
RUN cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \ | |
&& echo "${TIMEZONE}" > /etc/timezone | |
# Install Composer && Assets Plugin | |
RUN php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin --filename=composer \ | |
&& composer global require --no-progress "fxp/composer-asset-plugin:~1.2" \ | |
&& apk del tzdata \ | |
&& rm -rf /var/cache/apk/* | |
EXPOSE 9000 | |
CMD ["php-fpm"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment