Loading Dockerfile +3 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ # ########################################################################################### FROM debian:stretch FROM debian:buster #FROM localhost:5000/stretch LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>" Loading @@ -16,7 +16,8 @@ ARG OCI8_PACKAGE ENV PHP_VERSION=${PHP_VERSION} \ APACHE_CONF_DIR=/etc/apache2 \ PHP_CONF_DIR=/etc/php/${PHP_VERSION} \ HTTP_PROXY=${HTTP_PROXY} HTTP_PROXY=${HTTP_PROXY} \ HTTPS_PROXY=${HTTP_PROXY} # Mise à niveau de la distrib RUN echo "Acquire::http::proxy \"${HTTP_PROXY}\";" > /etc/apt/apt.conf.d/proxy Loading README.md +16 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,22 @@ docker build \ . ``` ### PHP 7.4 ```bash HTTP_PROXY=http://proxy.unicaen.fr:3128 ; \ NO_PROXY=unicaen.fr ; \ PHP_VERSION=7.4 ; \ docker build \ --rm \ --build-arg PHP_VERSION=${PHP_VERSION} \ --build-arg HTTP_PROXY=${HTTP_PROXY} \ --build-arg OCI8_PACKAGE="oci8" \ -f Dockerfile \ -t unicaen-dev-php${PHP_VERSION}-apache \ . ``` ## Utilisation de l'image ### Dans un `Dockerfile` Loading Loading
Dockerfile +3 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ # ########################################################################################### FROM debian:stretch FROM debian:buster #FROM localhost:5000/stretch LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>" Loading @@ -16,7 +16,8 @@ ARG OCI8_PACKAGE ENV PHP_VERSION=${PHP_VERSION} \ APACHE_CONF_DIR=/etc/apache2 \ PHP_CONF_DIR=/etc/php/${PHP_VERSION} \ HTTP_PROXY=${HTTP_PROXY} HTTP_PROXY=${HTTP_PROXY} \ HTTPS_PROXY=${HTTP_PROXY} # Mise à niveau de la distrib RUN echo "Acquire::http::proxy \"${HTTP_PROXY}\";" > /etc/apt/apt.conf.d/proxy Loading
README.md +16 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,22 @@ docker build \ . ``` ### PHP 7.4 ```bash HTTP_PROXY=http://proxy.unicaen.fr:3128 ; \ NO_PROXY=unicaen.fr ; \ PHP_VERSION=7.4 ; \ docker build \ --rm \ --build-arg PHP_VERSION=${PHP_VERSION} \ --build-arg HTTP_PROXY=${HTTP_PROXY} \ --build-arg OCI8_PACKAGE="oci8" \ -f Dockerfile \ -t unicaen-dev-php${PHP_VERSION}-apache \ . ``` ## Utilisation de l'image ### Dans un `Dockerfile` Loading