Migrate to Alpine #5
@ -1,11 +1,17 @@
|
|||||||
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 && \
|
||||||
apk add --no-cache nginx php81 php81-fpm && \
|
apk add --no-cache nginx php81 php81-fpm && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
# Install Imagick
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
|
||||||
|
install-php-extensions imagick
|
||||||
|
|
||||||
# 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