FROM php:8.3-apache # Copy the application files to the Apache web root 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. CMD ["apache2-foreground"]