BingPic / Dockerfile
github-actions[bot]
GitHub deploy: a5bb9a37c0b2912097a4e63e976e1d06938e3c44
930f9b2
raw
history blame
575 Bytes
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"]