Spaces:
Running
Running
Jose Benitez
commited on
Commit
·
20c46d5
1
Parent(s):
ffa9aa3
update dockerfile
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
-
WORKDIR /usr/src/app
|
4 |
COPY . .
|
5 |
-
RUN pip install --no-cache-dir gradio
|
6 |
-
EXPOSE 7860
|
7 |
-
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10.9
|
2 |
|
|
|
3 |
COPY . .
|
|
|
|
|
|
|
4 |
|
5 |
+
WORKDIR /
|
6 |
+
|
7 |
+
# Install requirements.txt
|
8 |
+
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
9 |
+
|
10 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|