| FROM php:8.3-apache | |
| RUN a2enmod rewrite | |
| RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/ports.conf && \ | |
| sed -i 's/:80>/:8080>/' /etc/apache2/sites-available/000-default.conf | |
| RUN echo '<Directory /var/www/html>\n\ | |
| AllowOverride All\n\ | |
| </Directory>' >> /etc/apache2/sites-available/000-default.conf | |
| RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
| WORKDIR /var/www/html | |
| COPY . /var/www/html | |
| RUN chmod -R 777 /var/www/html | |
| COPY .htaccess /var/www/html/.htaccess | |
| EXPOSE 8080 | |
| CMD ["apache2-foreground"] | |