Commit 2e805dbe authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Docker: PHP 7.2 par défaut.

parent 4ad9093a
Pipeline #3994 passed with stage
in 24 seconds
......@@ -4,17 +4,22 @@
#
###########################################################################################
FROM unicaen-dev-php7.0-apache
FROM unicaen-dev-php7.2-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
WORKDIR /app
ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/7.0
PHP_CONF_DIR=/etc/php/7.2
## Installation de packages requis.
RUN apt-get install -y \
RUN apt-get update -qq && apt-get install -y \
sqlite3 \
php7.0-pdo-sqlite
php7.2-pdo-sqlite
RUN pecl install ast && \
echo "extension=ast.so" > ${PHP_CONF_DIR}/cli/conf.d/ast.ini
# Nettoyage
RUN apt-get autoremove -y && apt-get clean && rm -rf /tmp/* /var/tmp/*
......@@ -32,4 +37,4 @@ ADD docker/fpm/pool.d/app.conf ${PHP_CONF_DIR}/fpm/pool.d/webapp.conf
ADD docker/fpm/conf.d/app.ini ${PHP_CONF_DIR}/fpm/conf.d/app.ini
RUN a2ensite webapp webapp-ssl && \
service php7.0-fpm reload
service php7.2-fpm reload
......@@ -4,7 +4,7 @@ services:
skeleton-application:
container_name: skeleton-application-container
build:
dockerfile: Dockerfile-7.2
dockerfile: Dockerfile
context: .
ports:
- "8880:80"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment