Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +16 -16
Dockerfile
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
-
# Usa una imagen base de Python
|
2 |
-
FROM python:3.9
|
3 |
-
# Establece el directorio de trabajo
|
4 |
-
WORKDIR /code
|
5 |
-
|
6 |
-
# Copia los archivos necesarios al contenedor
|
7 |
-
COPY ./requirements.txt /code/requirements.txt
|
8 |
-
RUN pip install --no-cache-dir -r /code/requirements.txt
|
9 |
-
|
10 |
-
COPY . .
|
11 |
-
|
12 |
-
RUN chmod -R 777 /code
|
13 |
-
|
14 |
-
# Comando para ejecutar la aplicaci贸n
|
15 |
-
# CMD ["python", "app.py"]
|
16 |
-
CMD ["uvicorn", "
|
|
|
1 |
+
# Usa una imagen base de Python
|
2 |
+
FROM python:3.9
|
3 |
+
# Establece el directorio de trabajo
|
4 |
+
WORKDIR /code
|
5 |
+
|
6 |
+
# Copia los archivos necesarios al contenedor
|
7 |
+
COPY ./requirements.txt /code/requirements.txt
|
8 |
+
RUN pip install --no-cache-dir -r /code/requirements.txt
|
9 |
+
|
10 |
+
COPY . .
|
11 |
+
|
12 |
+
RUN chmod -R 777 /code
|
13 |
+
|
14 |
+
# Comando para ejecutar la aplicaci贸n
|
15 |
+
# CMD ["python", "app.py"]
|
16 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|