feat: add Dockerfile, captain-definition, and production-ready Nginx configuration for deployment

This commit is contained in:
Ben
2026-05-15 01:21:58 -07:00
parent 7d5707bcf6
commit 277ff29298
3 changed files with 53 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Gzip
gzip on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
gzip_min_length 1024;
# Cache static assets aggressively (Vite hashes filenames)
location ~* \.(?:js|css|woff2?|png|jpg|jpeg|webp|svg|ico)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# SPA fallback — always serve index.html for unknown routes
location / {
try_files $uri $uri/ /index.html;
}
}