Increase network timeout for yarn in Dockerfile to prevent timeout errors on cross builds.

This commit is contained in:
Jan Böhmer 2023-02-05 19:31:21 +01:00
parent 8794c1d018
commit d3023ea945
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ RUN a2enmod rewrite
# Install composer and yarn dependencies for Part-DB
USER www-data
RUN composer install -a --no-dev && composer clear-cache
RUN yarn install && yarn build && yarn cache clean && rm -rf node_modules/
RUN yarn install --network-timeout 600000 && yarn build && yarn cache clean && rm -rf node_modules/
# Use docker env to output logs to stdout
ENV APP_ENV=docker

View file

@ -119,7 +119,7 @@ class StructuralEntityType extends AbstractType
//Must be the same as the separator in the choice_loader, otherwise this will not work!
return $element->getFullPath('->');
}
return $element->getID();
}, //Use the element id as option value and for comparing items
'choice_loader' => function (Options $options) {