Add .htaccess file, route now working
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f4e437c7d1
commit
faf20c0dc8
@ -1,6 +1,10 @@
|
|||||||
FROM shinsenter/slim:latest
|
FROM php:8.1-apache
|
||||||
RUN apt-get update && apt-get install -y git
|
RUN apt-get update && apt-get install -y git
|
||||||
RUN docker-php-ext-install pdo pdo_mysql
|
RUN docker-php-ext-install pdo pdo_mysql
|
||||||
COPY ./script /var/www/html
|
COPY ./script /var/www/html
|
||||||
WORKDIR /var/www/html/Config
|
WORKDIR /var/www/html/Config
|
||||||
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
RUN composer update && composer install
|
RUN composer update && composer install
|
||||||
|
RUN a2enmod rewrite
|
||||||
|
RUN a2enmod actions
|
||||||
|
RUN service apache2 restart
|
@ -0,0 +1,4 @@
|
|||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^ index.php [QSA,L]
|
Loading…
Reference in new issue