Merge branch 'master' of https://codefirst.iut.uca.fr/git/Assasymfony/Fukashitapi
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
3b922ab8f6
@ -0,0 +1,17 @@
|
|||||||
|
FROM php:8.2-apache
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y git zip
|
||||||
|
|
||||||
|
COPY . /var/www/html
|
||||||
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
RUN composer install
|
||||||
|
|
||||||
|
RUN a2enmod rewrite
|
||||||
|
RUN a2enmod actions
|
||||||
|
|
||||||
|
COPY ./vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||||
|
RUN service apache2 restart
|
||||||
|
|
||||||
|
ENTRYPOINT ["php","-S","0.0.0.0:80","-t","./public"]
|
@ -0,0 +1,21 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
DocumentRoot /var/www/html/public
|
||||||
|
DirectoryIndex index.php
|
||||||
|
|
||||||
|
<Directory /var/www/html/public>
|
||||||
|
AllowOverride All
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from All
|
||||||
|
Require all granted
|
||||||
|
FallbackResource /index.php
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||||
|
</IfModule>
|
||||||
|
</VirtualHost>
|
Loading…
Reference in new issue