Skip to content

Commit

Permalink
php fpm for develop
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishsieh committed Nov 16, 2018
1 parent 1239694 commit db7de1f
Show file tree
Hide file tree
Showing 3 changed files with 1,990 additions and 0 deletions.
49 changes: 49 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
FROM php:fpm-alpine

RUN apk add --update \
icu icu-dev \
gettext gettext-dev \
jq figlet ncurses \
zip libzip libzip-dev \
freetype freetype-dev \
libjpeg-turbo libjpeg-turbo-dev \
libpng libpng-dev \
libmcrypt libmcrypt-dev \
gcc make libc-dev autoconf \
git ruby-full npm composer python g++ && \
docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ && \
docker-php-ext-configure zip \
--with-libzip && \
docker-php-ext-install \
intl gettext \
mysqli pdo_mysql \
exif \
gd \
zip \
>/dev/null && \
pecl install mcrypt-1.0.1 && \
echo "extension=mcrypt.so" > /usr/local/etc/php/conf.d/mcrypt.ini && \
apk del \
icu-dev gettext-dev \
freetype-dev libjpeg-turbo-dev libpng-dev \
libzip-dev \
libmcrypt-dev \
autoconf && \
npm i npm@latest -g && \
composer self-update && \
gem install sass -v 3.4.25

COPY ./presetup /usr/local/bin
COPY ./php.ini /usr/local/etc/php/
RUN chmod +x /usr/local/bin/presetup

# Set work directory to the web host path
WORKDIR /var/www

# Run the configsetup file on container start
ENTRYPOINT ["/usr/local/bin/presetup"]
CMD ["php-fpm"]
Loading

0 comments on commit db7de1f

Please sign in to comment.