Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
skeleton-application
Commits
2e805dbe
Commit
2e805dbe
authored
Mar 14, 2019
by
Bertrand Gauthier
Browse files
Docker: PHP 7.2 par défaut.
parent
4ad9093a
Pipeline
#3994
passed with stage
in 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
2e805dbe
...
...
@@ -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
docker-compose.yml
View file @
2e805dbe
...
...
@@ -4,7 +4,7 @@ services:
skeleton-application
:
container_name
:
skeleton-application-container
build
:
dockerfile
:
Dockerfile
-7.2
dockerfile
:
Dockerfile
context
:
.
ports
:
-
"
8880:80"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment