parent
e47372cdc4
commit
2ce6d071b6
11
Dockerfile
11
Dockerfile
@ -1,7 +1,5 @@
|
|||||||
FROM alpine:3.18.2
|
FROM alpine:3.18.2
|
||||||
|
|
||||||
ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk upgrade && \
|
apk upgrade && \
|
||||||
@ -9,8 +7,13 @@ RUN apk update && \
|
|||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
# Install Imagick
|
# Install Imagick
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
|
RUN set -ex \
|
||||||
install-php-extensions imagick
|
&& apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
|
||||||
|
&& export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
|
||||||
|
&& pecl install imagick-3.4.3 \
|
||||||
|
&& docker-php-ext-enable imagick \
|
||||||
|
&& apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
|
||||||
|
&& apk del .phpize-deps
|
||||||
|
|
||||||
# Set up nginx
|
# Set up nginx
|
||||||
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user