Browse Source

add php-imagick support

master
filesite 4 weeks ago
parent
commit
b8a2c919ba
  1. 19
      Dockerfile

19
Dockerfile

@ -1,7 +1,9 @@ @@ -1,7 +1,9 @@
FROM php:8.4.0RC2-fpm-alpine3.20
RUN apk add rsync nginx zlib-dev libpng-dev freetype-dev libjpeg-turbo-dev libwebp-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-imagick \
FROM php:8.2-fpm-alpine3.20
RUN apk add autoconf gcc musl-dev make imagemagick-dev \
&& apk add rsync nginx zlib-dev libpng-dev freetype-dev libjpeg-turbo-dev libwebp-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
&& docker-php-ext-install -j$(nproc) gd \
&& pecl install imagick && docker-php-ext-enable imagick \
&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini \
&& cd /usr/local/etc/php/ \
&& sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 100M/g' php.ini \
@ -26,13 +28,4 @@ RUN apk add rsync nginx zlib-dev libpng-dev freetype-dev libjpeg-turbo-dev libwe @@ -26,13 +28,4 @@ RUN apk add rsync nginx zlib-dev libpng-dev freetype-dev libjpeg-turbo-dev libwe
EXPOSE 80/tcp
ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"]
# 默认使用图片展皮肤:beauty
CMD ["beauty"]
# 去掉admin后台
#&& cd /var/www/downloads/ \
#&& wget "https://git.filesite.io/wen/jialuomaadmin/archive/master.tar.gz" \
# && tar -zxvf master.tar.gz \
# && rm -f master.tar.gz \
# && rm -rf /var/www/machete/www/admin/ \
# && mv jialuomaadmin/dist/ /var/www/machete/www/admin \
CMD ["beauty"]
Loading…
Cancel
Save