refactor: update Dockerfile to use Nginx for serving the application and adjust configuration for multi-stage build

This commit is contained in:
Alexis
2026-05-13 12:49:36 +02:00
parent a5321a6807
commit cd9ad28a98
2 changed files with 23 additions and 8 deletions
+18
View File
@@ -0,0 +1,18 @@
server {
listen 5173;
listen [::]:5173;
server_name _;
root /app/dist;
index index.html;
# Apache forwards the full path; strip /orcid2words/ before resolving files under dist/.
location = /orcid2words {
return 301 /orcid2words/;
}
location /orcid2words/ {
rewrite ^/orcid2words/(.*)$ /$1 break;
try_files $uri $uri/ /index.html;
}
}