Skip to content

Commit 899fcb4

Browse files
committed
listo para produccion v1
1 parent 780756f commit 899fcb4

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

backend/dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ RUN apt-get update && apt-get install -y libpq-dev
88
WORKDIR /app
99

1010
# Copia el archivo requirements.txt al contenedor
11-
COPY backend/requirements.txt /app/
11+
COPY requirements.txt /app/
1212

1313
# Instala las dependencias desde requirements.txt
1414
RUN pip install --no-cache-dir -r requirements.txt
1515

1616
# Copia el resto del código del backend al contenedor
17-
COPY backend /app/
17+
COPY . /app/
1818

1919
# Exponer el puerto en el que corre la aplicación Flask
2020
EXPOSE 3001

render.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,17 @@ databases:
1010
description: everywhere
1111
postgresMajorVersion: "16"
1212
version: "1"
13+
14+
services:
15+
- type: web
16+
name: backend
17+
env: python
18+
buildCommand: "docker build -t backend ./backend" # Construir la imagen de Docker
19+
startCommand: "docker run -p 5000:5000 backend" # Ejecutar el contenedor en el puerto adecuado
20+
rootDir: ./backend
21+
- type: web
22+
name: frontend
23+
env: node
24+
buildCommand: "docker build -t frontend ./frontend" # Construir la imagen de Docker
25+
startCommand: "docker run -p 3000:3000 frontend" # Ejecutar el contenedor en el puerto adecuado
26+
rootDir: ./frontend

0 commit comments

Comments
 (0)