2025-04-03 09:02:08 +09:00

31 lines
711 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM php:8.3-fpm-alpine
# 必要パッケージのインストール
RUN apk add --no-cache \
imagemagick \
imagemagick-dev \
libpng-dev \
libjpeg-turbo-dev \
libheif \
freetype-dev \
unzip \
curl \
autoconf \
gcc \
g++ \
make
RUN docker-php-ext-configure gd \
--with-freetype --with-jpeg \
&& docker-php-ext-install gd
RUN pecl install imagick \
&& docker-php-ext-enable imagick \
&& apk del autoconf gcc g++ make # ビルド系は後で削除して軽量化
# Composerの追加公式composerイメージから取得
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html