php-fpm
のビルドに失敗
Laradockをcloneして、設定を諸々済ませ、
docker-compose up -d nginx mysql
してみたところ、
こんな表示が。
E: Failed to fetch http://deb.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7_2.3.0-2_amd64.deb 404 Not Found [IP: 151.101.110.133 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7-dev_2.3.0-2_amd64.deb 404 Not Found [IP: 151.101.110.133 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python3.7/libpython3.7-minimal_3.7.3-2_amd64.deb 404 Not Found [IP: 151.101.110.133 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python3.7/python3.7_3.7.3-2_amd64.deb 404 Not Found [IP: 151.101.110.133 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cups/libcupsimage2_2.2.10-6+deb10u1_amd64.deb 404 Not Found [IP: 151.101.110.133 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c if [ ${INSTALL_IMAGEMAGICK} = true ]; then apt-get install -y libmagickwand-dev imagemagick && pecl install imagick && docker-php-ext-enable imagick ;fi' returned a non-zero code: 100
php-fpm
コンテナが立ち上がらない。
その前のエラーで run apt-get update
せいと言われているので、当該部に処理を追加する。
laradock/php-fpm/Dockerfile
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
# ここに apt-get update && \ を追記
apt-get update && \
apt-get install -y libmagickwand-dev imagemagick && \
pecl install imagick && \
docker-php-ext-enable imagick \
;fi
改めてビルドしたら無事に立ち上がった。