Dockerfile pour Alpine:3.20 Php:83

This commit is contained in:
2024-09-10 12:20:47 +02:00
parent e2892bad0b
commit fe575b476c
2 changed files with 5 additions and 2 deletions

View File

@@ -1,12 +1,13 @@
FROM alpine:3.12
FROM alpine:3.20
RUN apk add php7-apache2 php7-ldap php7-session php7-json php7-pecl-redis
RUN apk add php83-apache2 php83-ldap php83-session php83-json php83-pecl-redis
RUN sed -i "s|/var/www/localhost/htdocs|/var/www/html|g" /etc/apache2/httpd.conf
# RUN rm /var/log/apache2/access.log /var/log/apache2/error.log
RUN ln -s /dev/stdout /var/log/apache2/access.log
RUN ln -s /dev/stderr /var/log/apache2/error.log
RUN mkdir /var/www/html
COPY www/ /var/www/html
RUN chmod 777 /var/www/html/templates_c
WORKDIR /var/www/html
VOLUME /var/www/html

View File

@@ -1,5 +1,7 @@
<?php
*bNeedInstall = true;
$Cfg = ['host' => 'dc1',
'uri' => 'ldap://dc1:389',
'user' => 'administrator',