fix: use COPY vhost.conf for Apache config instead of heredoc
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
31
Dockerfile
31
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'
|
||||
<VirtualHost *:80>
|
||||
ServerName localhost
|
||||
ServerAdmin webmaster@localhost
|
||||
|
||||
DocumentRoot /var/www/html/public
|
||||
|
||||
<Directory /var/www/html/public>
|
||||
Options FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory /var/www/html>
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
Alias /uploads /home/uploads
|
||||
|
||||
<Directory /home/uploads>
|
||||
Options FollowSymLinks
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
EOF
|
||||
COPY vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
# Upload klasörü
|
||||
RUN mkdir -p /home/uploads \
|
||||
|
||||
Reference in New Issue
Block a user