我正试图通过云运行来部署php项目,但我仍然得到了相同的错误。
Problem 1
- spatie/image is locked to version 1.10.1 and an update of this package was not requested.
- spatie/image 1.10.1 requires ext-exif * -> it is missing from your system. Install or enable PHP's exif extension.
Problem 2
- spatie/pdf-to-image is locked to version 2.1.0 and an update of this package was not requested.
- spatie/pdf-to-image 2.1.0 requires ext-imagick * -> it is missing from your system. Install or enable PHP's imagick extension.
Problem 3
- spatie/image 1.10.1 requires ext-exif * -> it is missing from your system. Install or enable PHP's exif extension.
- spatie/laravel-medialibrary 7.19.5 requires spatie/image ^1.4.0 -> satisfiable by spatie/image[1.10.1].
- spatie/laravel-medialibrary is locked to version 7.19.5 and an update of this package was not requested.我找不到这个包,但它是一个拉拉维尔的设备,所以我不能卸载,我是用码头来做这个部署
FROM composer as build
WORKDIR /app
COPY . /app
RUN composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader
FROM node:12 as node
COPY package.json ./
COPY yarn.lock ./
RUN yarn install
RUN npm install
FROM php:7.3-apache-stretch
RUN docker-php-ext-install pdo pdo_mysql
EXPOSE 8080
COPY --from=build /app /var/www/html
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
RUN echo "Listen 8080" >> /etc/apache2/ports.conf && \
chown -R www-data:www-data /var/www/html && \
a2enmod rewrite
CMD service apache2 restart && bash已试过:
按需要的包删除(已设置了连续部署,但您的存储库未能构建和部署),--ignore-platform-reqs
发布于 2021-01-11 17:23:58
这个问题通过在Linux(ubuntu)平台上运行安装命令而得到解决,其他任何事情都没有改变,我甚至不知道为什么会发生错误。
发布于 2021-01-04 12:29:17
您必须在RUN docker-php-ext-install pdo pdo_mysql add exif:RUN docker-php-ext-install pdo pdo_mysql exif行中的dockerfile中安装所需的php扩展。
安装映像魔法,可能很复杂,请参阅https://github.com/docker-library/php/issues/105#issuecomment-563010422或这个脚本- https://github.com/mlocati/docker-php-extension-installer。
https://stackoverflow.com/questions/65482306
复制相似问题