fix(docker): implement multi-stage build and serve dist folder
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
David Fencl
2025-12-11 19:12:53 +01:00
parent 188c7d4bc6
commit 065d57a74f
2 changed files with 27 additions and 13 deletions

View File

@@ -3,13 +3,22 @@ LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
<VirtualHost *:80>
ServerName localhost
DocumentRoot /app
DocumentRoot /app/dist
<Directory "/app">
<Directory "/app/dist">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log