From 43f1ca84a4cebcf6ff37e3c16aab2e61b546662b Mon Sep 17 00:00:00 2001 From: ExtraNetwork Date: Wed, 13 May 2026 10:16:58 +0300 Subject: [PATCH] fix: use COPY vhost.conf for Apache config instead of heredoc --- Dockerfile | 31 +------------------------------ vhost.conf | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 30 deletions(-) create mode 100644 vhost.conf diff --git a/Dockerfile b/Dockerfile index 5c24dd4..f96052e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,36 +41,7 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ RUN a2enmod rewrite # Apache VirtualHost ayarı -RUN cat > /etc/apache2/sites-available/000-default.conf <<'EOF' - - ServerName localhost - ServerAdmin webmaster@localhost - - DocumentRoot /var/www/html/public - - - Options FollowSymLinks - AllowOverride All - Require all granted - - - - AllowOverride All - Require all granted - - - Alias /uploads /home/uploads - - - Options FollowSymLinks - AllowOverride None - Require all granted - - - ErrorLog ${APACHE_LOG_DIR}/error.log - CustomLog ${APACHE_LOG_DIR}/access.log combined - -EOF +COPY vhost.conf /etc/apache2/sites-available/000-default.conf # Upload klasörü RUN mkdir -p /home/uploads \ diff --git a/vhost.conf b/vhost.conf new file mode 100644 index 0000000..4905e96 --- /dev/null +++ b/vhost.conf @@ -0,0 +1,28 @@ + + ServerName localhost + ServerAdmin webmaster@localhost + + DocumentRoot /var/www/html/public + + + Options FollowSymLinks + AllowOverride All + Require all granted + + + + AllowOverride All + Require all granted + + + Alias /uploads /home/uploads + + + Options FollowSymLinks + AllowOverride None + Require all granted + + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined +