FROM php:8.3-apache # Suppress ServerName warning RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf # Increase PHP limits RUN echo "memory_limit=512M" > /usr/local/etc/php/conf.d/custom.ini \ && echo "max_execution_time=300" >> /usr/local/etc/php/conf.d/custom.ini COPY . /var/www/html/ RUN chown -R www-data:www-data /var/www/html # Hardcode Apache to listen on 3000 for Dokploy RUN sed -i 's/80/3000/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf EXPOSE 3000 CMD ["apache2-foreground"]