Skip to content

Commit

Permalink
Optimize docker installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Volmarg committed Jul 17, 2021
1 parent af3b185 commit 5a8bd88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker-first-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
composer install; # install all composer packages
composer pms-installer-docker; # preconfigure system
chmod 777 .env; # set .env file permission to let installer setting `done` flag
6 changes: 5 additions & 1 deletion docker/php-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update -y && apt-get install -y libpng-dev

RUN apt-get update && \
apt-get install -y \
zlib1g-dev
zlib1g-dev

RUN docker-php-ext-install gd

Expand All @@ -25,6 +25,10 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \

COPY php.ini /usr/local/etc/php/conf.d/php.ini

RUN pecl install apcu

RUN pear config-set php_ini /application/docker/php-fpm/php.ini

CMD ["php-fpm"]

EXPOSE 9000

0 comments on commit 5a8bd88

Please sign in to comment.