File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ RUN apt-get update && apt-get install -y libpq-dev
8
8
WORKDIR /app
9
9
10
10
# Copia el archivo requirements.txt al contenedor
11
- COPY backend/ requirements.txt /app/
11
+ COPY requirements.txt /app/
12
12
13
13
# Instala las dependencias desde requirements.txt
14
14
RUN pip install --no-cache-dir -r requirements.txt
15
15
16
16
# Copia el resto del código del backend al contenedor
17
- COPY backend /app/
17
+ COPY . /app/
18
18
19
19
# Exponer el puerto en el que corre la aplicación Flask
20
20
EXPOSE 3001
Original file line number Diff line number Diff line change @@ -10,3 +10,17 @@ databases:
10
10
description : everywhere
11
11
postgresMajorVersion : " 16"
12
12
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
You can’t perform that action at this time.
0 commit comments