fix(ops): harden backend startup and worker recovery
Install modular API, voice and embedding extras and use the supported single-process server entrypoint. Drain worker SIGTERM shutdown within the Compose grace period. Add isolated HTTPS embedding fixtures, bounded intake execution and reproducible account, publication, restart, lease-recovery and shutdown acceptance. Eight operational scenarios passed with zero real-provider calls.
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@ COPY pyproject.toml /app/
|
||||
|
||||
# Stub package to leverage Docker layer caching for pip dependencies
|
||||
RUN mkdir -p /app/app && touch /app/app/__init__.py \
|
||||
&& pip install --no-cache-dir -e ".[prototype,embedding]"
|
||||
&& pip install --no-cache-dir -e ".[api,voice,embedding]"
|
||||
|
||||
# Copy application source code and migrations
|
||||
COPY app/ /app/app/
|
||||
@@ -34,4 +34,4 @@ RUN pip install --no-deps -e .
|
||||
EXPOSE 8000
|
||||
|
||||
# Default command: FastAPI API server
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
CMD ["python", "-m", "app.server", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
||||
Reference in New Issue
Block a user