Spaces:
Runtime error
Runtime error
Maicol2001
commited on
Commit
•
6d0b723
1
Parent(s):
ac54c97
Update Dockerfile
Browse files- Dockerfile +7 -12
Dockerfile
CHANGED
@@ -1,16 +1,11 @@
|
|
1 |
-
|
2 |
-
FROM python:3.11.6
|
3 |
-
# Establece el directorio de trabajo
|
4 |
-
WORKDIR /code
|
5 |
|
6 |
-
|
7 |
-
COPY ./requirements.txt /code/requirements.txt
|
8 |
-
RUN pip install --no-cache-dir -r /code/requirements.txt
|
9 |
-
RUN pip install fastapi uvicorn
|
10 |
|
11 |
-
COPY . .
|
12 |
|
13 |
-
RUN
|
14 |
|
15 |
-
|
16 |
-
|
|
|
|
1 |
+
FROM python:3.8-slim
|
|
|
|
|
|
|
2 |
|
3 |
+
WORKDIR /app
|
|
|
|
|
|
|
4 |
|
5 |
+
COPY requirements.txt .
|
6 |
|
7 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
+
COPY app.py .
|
10 |
+
|
11 |
+
ENTRYPOINT ["python", "app.py"]
|