Merge pull request #2477 from der-On/patch-1

fixes docker build
pull/2479/head
daniel 2020-12-09 22:44:39 -07:00 zatwierdzone przez GitHub
commit ef45c4b21b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -92,11 +92,9 @@ RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
COPY . /var/www/
# for detail why storage is copied this way, pls refer to https://github.com/pixelfed/pixelfed/pull/2137#discussion_r434468862
RUN cp -r storage storage.skel \
&& composer global require hirak/prestissimo --prefer-dist --no-interaction --no-ansi --no-suggest \
&& composer install --prefer-dist --no-interaction --no-ansi --optimize-autoloader \
&& composer update --prefer-dist --no-interaction --no-ansi \
&& composer global remove hirak/prestissimo --no-interaction --no-ansi \
&& rm -rf html && ln -s public html
&& rm -rf html && ln -s public html \
&& chown -R www-data:www-data /var/www
VOLUME /var/www/storage /var/www/bootstrap
CMD ["/var/www/contrib/docker/start.apache.sh"]