add docker support :3

This commit is contained in:
2026-04-21 15:00:03 +02:00
parent 7ee3d6441a
commit 2a439b8df4
3 changed files with 16 additions and 1 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM php:8.3-apache
RUN a2enmod rewrite
COPY . /var/www/html
RUN sed -i 's|/var/www/html|/var/www/html/public|g' \
/etc/apache2/sites-available/000-default.conf
RUN sed -i 's|AllowOverride None|AllowOverride All|g' \
/etc/apache2/apache2.conf

4
public/.htaccess Normal file
View File

@@ -0,0 +1,4 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

View File

@@ -6,7 +6,7 @@ class HomeController extends BaseController
public function index(): void
{
$this->render('home', [
'title' => 'Willkommen'
'title' => 'meow :3'
]);
}
}