Skip to content

Commit 5a8bd88

Browse files
committed
Optimize docker installation
1 parent af3b185 commit 5a8bd88

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: docker-first-run.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
composer install; # install all composer packages
2+
composer pms-installer-docker; # preconfigure system
3+
chmod 777 .env; # set .env file permission to let installer setting `done` flag

Diff for: docker/php-fpm/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN apt-get update -y && apt-get install -y libpng-dev
1414

1515
RUN apt-get update && \
1616
apt-get install -y \
17-
zlib1g-dev
17+
zlib1g-dev
1818

1919
RUN docker-php-ext-install gd
2020

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

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

28+
RUN pecl install apcu
29+
30+
RUN pear config-set php_ini /application/docker/php-fpm/php.ini
31+
2832
CMD ["php-fpm"]
2933

3034
EXPOSE 9000

0 commit comments

Comments
 (0)