Spaces:
Sleeping
Sleeping
QuophyDzifa
commited on
Commit
•
4d1d818
1
Parent(s):
b05aacb
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM python:3.9
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
@@ -6,6 +6,8 @@ COPY ./requirements.txt /app
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
8 |
|
|
|
|
|
9 |
COPY ./src /app/src
|
10 |
|
11 |
-
CMD ["uvicorn", "
|
|
|
1 |
+
FROM python:3.9 #-slim
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
8 |
|
9 |
+
EXPOSE 7860
|
10 |
+
|
11 |
COPY ./src /app/src
|
12 |
|
13 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|