fix: remove dynamic port sed since base image exposes 80 natively
This commit is contained in:
@@ -6,5 +6,6 @@ COPY . /var/www/html/
|
|||||||
# Ensure proper permissions
|
# Ensure proper permissions
|
||||||
RUN chown -R www-data:www-data /var/www/html
|
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
|
# Apache uses port 80 by default, which Railway detects automatically.
|
||||||
CMD sed -i "s/80/$PORT/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf && apache2-foreground
|
# We just need to start it.
|
||||||
|
CMD ["apache2-foreground"]
|
||||||
|
|||||||
Reference in New Issue
Block a user