Restore Docker and nginx deployment files from remote initial commit

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Andres Corazon Santana Aquino
2026-10-21 11:53:26 -04:00
parent bdc08499df
commit 46ea364d31
3 changed files with 29 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
node_modules
dist
.git
+9
View File
@@ -0,0 +1,9 @@
FROM node:20-alpine AS build
WORKDIR /app
COPY . .
RUN node build.mjs
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
+17
View File
@@ -0,0 +1,17 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_types text/css application/javascript image/svg+xml application/xml;
location /assets/ {
add_header Cache-Control "public, max-age=604800, stale-while-revalidate=86400";
}
location / {
try_files $uri $uri/index.html =404;
}
error_page 404 /404.html;
}