leinier310 commited on
Commit
c394d15
verified
1 Parent(s): 1b81b9b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -4
Dockerfile CHANGED
@@ -1,12 +1,18 @@
1
  FROM python:3.11-slim
 
 
2
  WORKDIR /app
3
 
 
 
4
  COPY app.py ./
5
 
 
6
  RUN apt-get update \
7
- && apt-get install -y --no-install-recommends git patch unzip bash \
8
- && pip install --no-cache-dir fastapi uvicorn requests pydantic \
9
- && rm -rf /var/lib/apt/lists/*
 
10
 
11
  EXPOSE 7860
12
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.11-slim
2
+
3
+
4
  WORKDIR /app
5
 
6
+
7
+ # Copiar c贸digo y archivos
8
  COPY app.py ./
9
 
10
+ # Instalar dependencias y utilidades del sistema
11
  RUN apt-get update \
12
+ && apt-get install -y --no-install-recommends git patch unzip bash \
13
+ && pip install --no-cache-dir mcp uvicorn \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
 
17
  EXPOSE 7860
18
+ CMD ["python", "app.py"]