Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -11
Dockerfile
CHANGED
@@ -1,19 +1,11 @@
|
|
1 |
-
# Usar una imagen base de Python
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
-
# Establecer el directorio de trabajo dentro del contenedor
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
|
8 |
-
COPY app.py /app/
|
9 |
-
COPY diccionario_catabaco.csv /app/
|
10 |
-
COPY requirements.txt /app/
|
11 |
|
12 |
-
# Instalar dependencias
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
-
|
16 |
-
EXPOSE 8000
|
17 |
|
18 |
-
|
19 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
|
1 |
FROM python:3.9-slim
|
2 |
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
COPY . .
|
|
|
|
|
|
|
6 |
|
|
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
+
EXPOSE 7860
|
|
|
10 |
|
11 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|