Guardar en db

This commit is contained in:
2026-08-05 09:26:53 -05:00
parent b6f4aaa7b6
commit 519cd619ec
10 changed files with 1199 additions and 98 deletions
+10 -2
View File
@@ -1,7 +1,15 @@
FROM nginx:alpine
# Copiar el frontend a la carpeta de Nginx
RUN apk add --no-cache nodejs npm python3 make g++
WORKDIR /app/backend
COPY backend/package*.json ./
RUN npm install
COPY backend .
COPY frontend /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
# Exponer el puerto 80 del contenedor
EXPOSE 80
CMD node /app/backend/server.js & nginx -g 'daemon off;'