From 2a9459b8d2ff2a136027288f9520011b44e1f498 Mon Sep 17 00:00:00 2001 From: Suriya Date: Wed, 29 Apr 2026 13:38:37 +0530 Subject: [PATCH] fix: remove dynamic port sed since base image exposes 80 natively --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a7e16fd..34e106e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,6 @@ COPY . /var/www/html/ # Ensure proper permissions RUN chown -R www-data:www-data /var/www/html -# Replace the default Apache port (80) with the dynamic PORT environment variable provided by Railway, then start Apache -CMD sed -i "s/80/$PORT/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf && apache2-foreground +# Apache uses port 80 by default, which Railway detects automatically. +# We just need to start it. +CMD ["apache2-foreground"]