From daa40368e1bc5d53eb70638ea5da26aff4c31bf4 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 27 Jun 2026 12:15:58 -0500 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20backend/Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 backend/Dockerfile diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..06a77b6 --- /dev/null +++ b/backend/Dockerfile @@ -0,0 +1,15 @@ +# Usamos una versión ligera de Python +FROM python:3.11-slim + +# Creamos la carpeta de trabajo +WORKDIR /app + +# Copiamos el archivo de dependencias y las instalamos +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copiamos el resto del código del backend +COPY . . + +# Comando para iniciar tu FastAPI +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file