File "Dockerfile"

Full Path: C:/wamp64/www/LAVANDERIA/Dockerfile
File size: 574 bytes
MIME-type: text/plain
Charset: utf-8

FROM php:8.2-apache


RUN docker-php-ext-install pdo pdo_mysql mysqli


ENV APACHE_DOCUMENT_ROOT /var/www/html/public

RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' \
    /etc/apache2/sites-available/*.conf \
    /etc/apache2/apache2.conf


RUN a2enmod rewrite


RUN printf '<Directory /var/www/html/public>\n\
    AllowOverride All\n\
    Require all granted\n\
</Directory>\n' \
>> /etc/apache2/apache2.conf


COPY . /var/www/html


RUN chown -R www-data:www-data /var/www/html \
    && chmod -R 755 /var/www/html


EXPOSE 80