From 9571041c234b22f67a94a45a58c7c1ba5bdad1d9 Mon Sep 17 00:00:00 2001 From: Suriya Date: Wed, 29 Apr 2026 13:43:59 +0530 Subject: [PATCH] fix: hardcode apache to port 8080 and expose it to ensure railway routes correctly --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34e106e..032bd27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ COPY . /var/www/html/ # Ensure proper permissions RUN chown -R www-data:www-data /var/www/html -# Apache uses port 80 by default, which Railway detects automatically. -# We just need to start it. +# Change Apache to listen on port 8080 instead of 80 +RUN sed -i 's/80/8080/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf +EXPOSE 8080 + CMD ["apache2-foreground"]