Spaces:
Build error
Build error
Commit
·
563135d
1
Parent(s):
2719764
Realtime Flow
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -7,11 +7,11 @@ WORKDIR /app
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
-
# Copy your
|
| 11 |
-
#
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
-
# --- KEY
|
| 15 |
-
#
|
| 16 |
-
#
|
| 17 |
-
CMD ["uvicorn", "src
|
|
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
+
# Copy your entire project structure into the container
|
| 11 |
+
# This assumes your src/agent_session/main.py is within the copied structure
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
+
# --- KEY FIX: Correct the Uvicorn CMD to point to the exact module and app object ---
|
| 15 |
+
# Module path: src.agent_session.main
|
| 16 |
+
# App object name: app
|
| 17 |
+
CMD ["uvicorn", "src.agent_session.main:app", "--host", "0.0.0.0", "--port", "7860"]
|