Spaces:
Sleeping
Sleeping
Commit ·
d730bf4
1
Parent(s): 2ee02f5
revering to server.app:app
Browse files- Dockerfile +1 -1
- openenv.yaml +1 -1
- pyproject.toml +1 -1
Dockerfile
CHANGED
|
@@ -10,4 +10,4 @@ COPY . .
|
|
| 10 |
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
CMD ["uvicorn", "server
|
|
|
|
| 10 |
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]
|
openenv.yaml
CHANGED
|
@@ -8,7 +8,7 @@ version: 1.0
|
|
| 8 |
# =========================
|
| 9 |
# ENTRYPOINT
|
| 10 |
# =========================
|
| 11 |
-
entry_point: server
|
| 12 |
|
| 13 |
# =========================
|
| 14 |
# INTERFACE
|
|
|
|
| 8 |
# =========================
|
| 9 |
# ENTRYPOINT
|
| 10 |
# =========================
|
| 11 |
+
entry_point: server:app
|
| 12 |
|
| 13 |
# =========================
|
| 14 |
# INTERFACE
|
pyproject.toml
CHANGED
|
@@ -9,7 +9,7 @@ dependencies = [
|
|
| 9 |
]
|
| 10 |
|
| 11 |
[project.scripts]
|
| 12 |
-
server = "server
|
| 13 |
|
| 14 |
[build-system]
|
| 15 |
requires = ["setuptools", "wheel"]
|
|
|
|
| 9 |
]
|
| 10 |
|
| 11 |
[project.scripts]
|
| 12 |
+
server = "server:app"
|
| 13 |
|
| 14 |
[build-system]
|
| 15 |
requires = ["setuptools", "wheel"]
|