mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 16:24:29 +00:00
Parallel composer install in Dockerfile and Dockerfile.fpm fix
This commit is contained in:
parent
8f93390a2e
commit
aede31ea65
2 changed files with 5 additions and 0 deletions
|
@ -43,7 +43,9 @@ COPY . /var/www/
|
||||||
WORKDIR /var/www/
|
WORKDIR /var/www/
|
||||||
RUN cp -r storage storage.skel \
|
RUN cp -r storage storage.skel \
|
||||||
&& cp contrib/docker/php.ini /usr/local/etc/php/conf.d/pixelfed.ini \
|
&& cp contrib/docker/php.ini /usr/local/etc/php/conf.d/pixelfed.ini \
|
||||||
|
&& composer global require hirak/prestissimo --no-interaction --no-suggest --prefer-dist \
|
||||||
&& composer install --prefer-dist --no-interaction \
|
&& composer install --prefer-dist --no-interaction \
|
||||||
|
&& composer global remove hirak/prestissimo \
|
||||||
&& rm -rf html && ln -s public html
|
&& rm -rf html && ln -s public html
|
||||||
|
|
||||||
VOLUME /var/www/storage /var/www/bootstrap
|
VOLUME /var/www/storage /var/www/bootstrap
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
FROM php:7.4-fpm-buster
|
||||||
ARG COMPOSER_VERSION="1.9.1"
|
ARG COMPOSER_VERSION="1.9.1"
|
||||||
ARG COMPOSER_CHECKSUM="1f210b9037fcf82670d75892dfc44400f13fe9ada7af9e787f93e50e3b764111"
|
ARG COMPOSER_CHECKSUM="1f210b9037fcf82670d75892dfc44400f13fe9ada7af9e787f93e50e3b764111"
|
||||||
|
|
||||||
|
@ -32,7 +33,9 @@ COPY . /var/www/
|
||||||
WORKDIR /var/www/
|
WORKDIR /var/www/
|
||||||
RUN cp -r storage storage.skel \
|
RUN cp -r storage storage.skel \
|
||||||
&& cp contrib/docker/php.ini /usr/local/etc/php/conf.d/pixelfed.ini \
|
&& cp contrib/docker/php.ini /usr/local/etc/php/conf.d/pixelfed.ini \
|
||||||
|
&& composer global require hirak/prestissimo --no-interaction --no-suggest --prefer-dist \
|
||||||
&& composer install --prefer-dist --no-interaction \
|
&& composer install --prefer-dist --no-interaction \
|
||||||
|
&& composer global remove hirak/prestissimo \
|
||||||
&& rm -rf html && ln -s public html
|
&& rm -rf html && ln -s public html
|
||||||
|
|
||||||
VOLUME /var/www/storage /var/www/bootstrap
|
VOLUME /var/www/storage /var/www/bootstrap
|
||||||
|
|
Loading…
Reference in a new issue