acg-docker / old /Dockerfile.mod
helloworld
restruct the folder
d7f72fe
Raw History Blame Contribute Delete
634 Bytes
# 20240526: for docker for hug
FROM php:8.3-apache
COPY ./acg-faka /var/www/html/
RUN apt update
RUN apt-get install -y zlib1g-dev
RUN apt-get install -y libpng-dev
RUN apt-get install -y libzip-dev
RUN docker-php-ext-install gd pdo_mysql zip
RUN a2enmod rewrite
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN sed -i 's/80/7860/g' /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
EXPOSE 7860
#CMD ["apache2ctl", "-D", "FOREGROUND"]
#CMD /bin/bash -c "chmod 777 /var/www/html && exec apache2-foreground"
CMD ["/bin/bash", "-c", "chmod -R 777 /var/www/html && exec apache2-foreground"]