构建失败,已解决
zhangya4548 opened this issue · comments
zhangya4548 commented
由于composer官网最近异常,导致composer install失败,后检查需要在构建脚本增加两行修改compoer源
`
安装项目依赖
RUN set -xe
&& apk add --no-cache nginx redis nodejs supervisor git bash openssh-client rsync
&& npm config set registry http://registry.npm.taobao.org/
&& rm -rf composer.lock \ #增加
&& composer config repo.packagist composer https://packagist.laravel-china.org \ #增加
&& composer install -o
&& npm install --production
&& chmod -R 777 storage
`