Mise à jour de 'Sources/config/Dockerfile'
continuous-integration/drone/push Build is passing Details

master
David D'ALMEIDA 9 months ago
parent 39cc037569
commit b6fdae005b

@ -2,7 +2,12 @@ FROM php:8.2-apache as base
RUN docker-php-ext-install pdo pdo_mysql
COPY ./public /var/www/html/
COPY . /var/www/html/
WORKDIR /var/www/html/
EXPOSE 80
# Définir DocumentRoot sur le sous-répertoire public
RUN sed -ri -e 's!/var/www/html!/var/www/html/public!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!/var/www/public/!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
RUN sed -ri -e 's!/var/www/html!/var/www/html/public!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
EXPOSE 80

Loading…
Cancel
Save