File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ RUN set -x; \
44
44
wkhtmltopdf \
45
45
tar \
46
46
curl \
47
+ wget \
47
48
libzip-dev \
48
49
unzip \
49
50
\
@@ -76,15 +77,23 @@ COPY docker-entrypoint.sh /bin/docker-entrypoint.sh
76
77
77
78
RUN cd /var/www/bookstack \
78
79
&& mkdir /var/www/.composer \
79
- && chown -R www-data:www-data /usr/local/etc/php/conf.d/ /var/www/bookstack /var/www/.composer
80
+ && chown -R www-data:www-data /usr/local/etc/php/conf.d/ /var/www/bookstack /var/www/.composer \
81
+ && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
82
+ && sed -i 's/memory_limit = 128M/memory_limit = 512M/g' "$PHP_INI_DIR/php.ini"
83
+
84
+ # Install composer
85
+ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
86
+ && php composer-setup.php \
87
+ && mv composer.phar /usr/bin/composer \
88
+ && chmod +x /usr/bin/composer \
89
+ && php -r "unlink('composer-setup.php');"
80
90
81
91
# www-data
82
92
USER 33
83
93
84
- RUN set -x; \
85
- cd /var/www/bookstack \
86
- && curl -sS https://getcomposer.org/installer | php -- --version=$COMPOSER_VERSION \
87
- && /var/www/bookstack/composer.phar install -v -d /var/www/bookstack/
94
+ # Install deps
95
+ RUN cd /var/www/bookstack \
96
+ && /usr/bin/composer install -v -d /var/www/bookstack/
88
97
89
98
WORKDIR /var/www/bookstack
90
99
You can’t perform that action at this time.
0 commit comments