Update: Production ready with proper mapping and variables

This commit is contained in:
2026-05-08 15:39:34 +03:00
parent dcf43d382c
commit bbbd421aec
4 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
node_modules
dist
.env

View File

@@ -14,7 +14,8 @@ RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 5175
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

10
sysadmin_panel/nginx.conf Normal file
View File

@@ -0,0 +1,10 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}