修改dockerfile

This commit is contained in:
wucongxing 2023-06-25 14:48:56 +08:00
parent 1fe826b49d
commit 092fc0586c
5 changed files with 5 additions and 57 deletions

View File

@ -49,9 +49,9 @@ WORKDIR /opt/www
COPY . /opt/www COPY . /opt/www
RUN apk add --no-cache $PHPIZE_DEPS \ #RUN apk add --no-cache $PHPIZE_DEPS \
&& pecl8 install imagick \ # && pecl8 install imagick \
&& echo "extension=imagick.so" > /etc/php8/conf.d/imagick.ini # && echo "extension=imagick.so" > /etc/php8/conf.d/imagick.ini
RUN composer install --no-dev -o && php bin/hyperf.php RUN composer install --no-dev -o && php bin/hyperf.php

View File

@ -53,7 +53,6 @@ use Hyperf\Utils\ApplicationContext;
use Hyperf\Utils\Coroutine\Concurrent; use Hyperf\Utils\Coroutine\Concurrent;
use Intervention\Image\ImageManager; use Intervention\Image\ImageManager;
use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\CacheInterface;
use Spatie\PdfToImage\Pdf;
use Swoole\Coroutine; use Swoole\Coroutine;
use Swoole\Coroutine\Channel; use Swoole\Coroutine\Channel;
use Swoole\Coroutine\WaitGroup; use Swoole\Coroutine\WaitGroup;

View File

@ -29,7 +29,6 @@ use Extend\Ca\CaOnline;
use Extend\Prescription\Prescription; use Extend\Prescription\Prescription;
use Hyperf\Contract\LengthAwarePaginatorInterface; use Hyperf\Contract\LengthAwarePaginatorInterface;
use Hyperf\Utils\WaitGroup; use Hyperf\Utils\WaitGroup;
use Intervention\Image\ImageManager;
use Psr\Container\ContainerExceptionInterface; use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface; use Psr\Container\NotFoundExceptionInterface;
use Swoole\Coroutine\Channel; use Swoole\Coroutine\Channel;

View File

@ -37,7 +37,6 @@
"hyperf/snowflake": "^3.0", "hyperf/snowflake": "^3.0",
"hyperf/validation": "^3.0", "hyperf/validation": "^3.0",
"intervention/image": "^2.7", "intervention/image": "^2.7",
"spatie/pdf-to-image": "^1.2",
"tecnickcom/tcpdf": "^6.6", "tecnickcom/tcpdf": "^6.6",
"w7corp/easywechat": "^6.7" "w7corp/easywechat": "^6.7"
}, },
@ -105,4 +104,4 @@
] ]
} }
} }
} }

51
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "b678797d6b653d9891f0a1a1b542650d", "content-hash": "05e3ba05b453d5d07af51ee1337d0eaf",
"packages": [ "packages": [
{ {
"name": "adbario/php-dot-notation", "name": "adbario/php-dot-notation",
@ -5285,55 +5285,6 @@
"description": "A polyfill for getallheaders.", "description": "A polyfill for getallheaders.",
"time": "2019-03-08T08:55:37+00:00" "time": "2019-03-08T08:55:37+00:00"
}, },
{
"name": "spatie/pdf-to-image",
"version": "1.4.0",
"source": {
"type": "git",
"url": "https://github.com/spatie/pdf-to-image.git",
"reference": "8deb3d899ecbef7e8e1dad16e3e7b57997582abc"
},
"dist": {
"type": "zip",
"url": "https://mirrors.huaweicloud.com/repository/php/spatie/pdf-to-image/1.4.0/spatie-pdf-to-image-1.4.0.zip",
"reference": "8deb3d899ecbef7e8e1dad16e3e7b57997582abc",
"shasum": ""
},
"require": {
"ext-imagick": "*",
"php": ">=5.5.0"
},
"require-dev": {
"phpunit/phpunit": "^6.2"
},
"type": "library",
"autoload": {
"psr-4": {
"Spatie\\PdfToImage\\": "src"
}
},
"license": [
"MIT"
],
"authors": [
{
"name": "Freek Van der Herten",
"email": "freek@spatie.be",
"homepage": "https://spatie.be",
"role": "Developer"
}
],
"description": "Convert a pdf to an image",
"homepage": "https://github.com/spatie/pdf-to-image",
"keywords": [
"convert",
"image",
"pdf",
"pdf-to-image",
"spatie"
],
"time": "2017-06-15T18:15:09+00:00"
},
{ {
"name": "symfony/cache", "name": "symfony/cache",
"version": "v6.0.19", "version": "v6.0.19",