Spaces:
Running
Running
Commit ·
11eb910
1
Parent(s): a949db5
deploy jarvis to huggingface
Browse files- Dockerfile +12 -0
- run.py +1 -1
Dockerfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
RUN pip install -r requirements.txt
|
| 7 |
+
|
| 8 |
+
COPY . .
|
| 9 |
+
|
| 10 |
+
EXPOSE 7860
|
| 11 |
+
|
| 12 |
+
CMD ["python", "run.py"]
|
run.py
CHANGED
|
@@ -2,7 +2,7 @@ import uvicorn
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
if __name__ == "__main__":
|
| 5 |
-
port = int(os.environ.get("PORT",
|
| 6 |
uvicorn.run(
|
| 7 |
"app.main:app",
|
| 8 |
host="0.0.0.0",
|
|
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
if __name__ == "__main__":
|
| 5 |
+
port = int(os.environ.get("PORT", 7860))
|
| 6 |
uvicorn.run(
|
| 7 |
"app.main:app",
|
| 8 |
host="0.0.0.0",
|