fix(docker): implement multi-stage build and serve dist folder
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:
13
vhost.conf
13
vhost.conf
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user