Spaces:
Runtime error
Runtime error
SoSa123456
commited on
Commit
•
b334acf
1
Parent(s):
ac7c4d1
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
@@ -12,7 +12,11 @@ RUN python -m pip install --upgrade pip
|
|
12 |
RUN pip install -r requirements.txt
|
13 |
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
14 |
# Make port 80 available to the world outside this container
|
15 |
-
EXPOSE 80
|
16 |
|
17 |
# Run app.py when the container launches
|
18 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
12 |
RUN pip install -r requirements.txt
|
13 |
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
14 |
# Make port 80 available to the world outside this container
|
15 |
+
#EXPOSE 80
|
16 |
|
17 |
# Run app.py when the container launches
|
18 |
+
#CMD ["python", "app.py"]
|
19 |
+
|
20 |
+
COPY . .
|
21 |
+
|
22 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|