Guardar en db
This commit is contained in:
+10
-2
@@ -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;'
|
||||
|
||||
Reference in New Issue
Block a user