Spaces:
Sleeping
Sleeping
alanchen1115
commited on
Commit
•
c838af4
1
Parent(s):
e977103
Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
FROM python:3.9
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
WORKDIR $HOME/app
|
8 |
-
COPY --chown=user . $HOME/app
|
9 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.9
|
2 |
+
COPY . .
|
3 |
+
|
4 |
+
WORKDIR /
|
5 |
+
|
6 |
+
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
|
|
|
|
7 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|