fix: update asset paths and switch to Apache on port 3000

This commit is contained in:
2026-04-29 13:59:55 +05:30
parent d72fe9e17b
commit bf9bd34a86
24 changed files with 283 additions and 283 deletions

View File

@@ -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"]