diff --git a/Dockerfile b/Dockerfile index 0275241..3c06452 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,17 @@ -FROM php:8.3-cli +FROM php:8.3-apache -# Copy the application files -COPY . /app -WORKDIR /app +# Suppress ServerName warning +RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf -# Set permissions -RUN chown -R www-data:www-data /app +# 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 -# Expose port 3000 (matching Dokploy configuration) +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 -# Start the built-in PHP server on port 3000 (listening on all interfaces) -CMD ["php", "-S", "0.0.0.0:3000", "-t", "/app"] +CMD ["apache2-foreground"] diff --git a/about_us.php b/about_us.php index ef7a28e..4016039 100644 --- a/about_us.php +++ b/about_us.php @@ -119,7 +119,7 @@
- +
- +
- +
- +
- + -
\ No newline at end of file +
diff --git a/components/loyaly-products.php b/components/loyaly-products.php index 61c1544..a710987 100644 --- a/components/loyaly-products.php +++ b/components/loyaly-products.php @@ -9,7 +9,7 @@
- +

@@ -39,9 +39,9 @@