Home > other >  Download the official PHP - alipine dockfile cannot in local building a successful image
Download the official PHP - alipine dockfile cannot in local building a successful image

Time:09-20

Environment:

Centos7.4 + docker17.12

Ubuntu17.10 + docker17.12

A, use https://github.com/docker-librar... E3.7/FPM/Dockerfile

In the above two systems, can't build a successful, hints file does not exist , the official can not too, isn't me where not ready

Two, the following want to add two support library in official mysql, postgres and commonly used libraries, because of the above original can succeed, only pull PHP: 7.2 - FPM - alpine3.7 to succeed, is not at the local

Docker build -t PHP: 7.2 - FPM - alpine3.7 -t PHP: php_mysql_psql

Using the official add source, also did not add success, depressed

Where the dockerfile fault, postgres will find, what was wrong with these commands, which also need optimize
Below is add library dockerfile
[code]
The FROM PHP: 7.2 - FPM - alpine3.7
The RUN docker - PHP - source extract & amp; & \
Apk add, update, no - cache autoconf g + + make & amp; & \
Pecl install redis & amp; & \
Docker - PHP - ext - enable redis & amp; & \
Docker - PHP - ext - install mysqli & amp; & \
Docker - PHP - ext - install the pdo & amp; & \
Docker - PHP - ext - install pdo_mysql & amp; & \
# docker - PHP - ext - install PGSQL & amp; & \
Docker - PHP - ext - install pdo_pgsql & amp; & \
Docker - PHP - ext - install postgresql - dev & amp; & \
Docker - PHP - ext - install.bz2 & amp; & \
Docker - PHP - ext - install curl & amp; & \
Docker - PHP - ext - install ctype & amp; & \
Docker - PHP - ext - install common & amp; & \
Docker - PHP - ext - install McRypt & amp; & \
Docker - PHP - ext - install the dom & amp; & \
Docker - PHP - ext - install FPM & amp; & \
Docker - PHP - ext - install GMP & amp; & \
Docker - PHP - ext - install gd & amp; & \
Docker - PHP - ext - install gettext & amp; & \
Docker - PHP - ext - install iconv & amp; & \
Docker - PHP - ext - install intl & amp; & \
Docker - PHP - ext - install json & amp; & \
Docker - PHP - ext - install openssl & amp; & \
Docker - PHP - ext - install session & amp; & \
Docker - PHP - ext - install tokenizer & amp; & \
Docker - PHP - ext - install mbstring & amp; & \
Docker - PHP - ext - install xmlreaderhp7 - XMLRPC & amp; & \
Docker - PHP - ext - install zip & amp; & \
Docker - PHP - ext - install zlib & amp; & \
Docker - PHP - source delete
# images'
The RUN apk add - no - cache freetype libpng libjpeg - turbo freetype - dev libpng - dev libjpeg - turbo - dev & amp; & \
Docker - PHP - ext - configure gd \
- with - gd \ - with - freetype - dir=/usr/include/\ - with - PNG - dir=/usr/include/\ - with - jpeg - dir=/usr/include/& amp; & \

NPROC=$(grep -c ^? Processor/proc/cpuinfo 2 & gt;/dev/null | | 1) & amp; & \
Docker - PHP - ext - install - j ${NPROC} gd & amp; & \
Apk del - no - cache freetype - dev libpng - dev libjpeg - turbo - dev
RUN the rm - rf/var/cache/apk/*
[/code]
  • Related