use nginx instead of symfony serve
This commit is contained in:
parent
c5e4a31c0d
commit
ad6b755908
@ -38,6 +38,14 @@ RUN composer install --no-interaction --optimize-autoloader --no-dev
|
||||
|
||||
# Copy Nginx configuration
|
||||
COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
# Enable site by creating a symbolic link to sites-enabled
|
||||
RUN ln -sf /etc/nginx/conf.d/default.conf /etc/nginx/sites-enabled/default
|
||||
|
||||
# Remove default Nginx configuration
|
||||
RUN rm -f /etc/nginx/sites-enabled/default.conf
|
||||
|
||||
# Ensure Nginx directories exist
|
||||
RUN mkdir -p /var/log/nginx
|
||||
|
||||
# Start Nginx and PHP-FPM
|
||||
CMD ["/bin/bash", "-c", "service nginx start && php-fpm"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user