@@ -61,15 +61,15 @@ RUN pip config set global.timeout 60 && \
61
61
pip install --no-cache-dir -r multi_agents/requirements.txt --upgrade --prefer-binary
62
62
63
63
########################################################################
64
- # Stage 4: Final image with backend, frontend, and supervisor
64
+ # Stage 4: Final image with backend, frontend
65
65
########################################################################
66
66
FROM backend-builder AS final
67
67
68
68
WORKDIR /usr/src/app
69
69
70
- # Install Node.js and supervisor with retry logic
70
+ # Install Node.js with retry logic
71
71
RUN apt-get update && \
72
- apt-get install -y curl supervisor && \
72
+ apt-get install -y curl && \
73
73
curl -fsSL --retry 3 --retry-delay 10 https://deb.nodesource.com/setup_20.x | bash - && \
74
74
apt-get install -y nodejs && \
75
75
rm -rf /var/lib/apt/lists/*
@@ -97,7 +97,7 @@ COPY --from=frontend-builder /app/frontend/nextjs/package.json ./frontend/nextjs
97
97
# Ensure next.config.mjs and other necessary files are present
98
98
COPY --from=frontend-builder /app/frontend/nextjs/next.config.mjs ./frontend/nextjs/next.config.mjs
99
99
100
- # Create a startup script that generates supervisor config with actual port values
100
+ # Start the backend and frontend servers
101
101
CMD /bin/bash -c 'cd /usr/src/app; \
102
102
(uvicorn main:app --host "$HOST" --port "$PORT") & \
103
103
(cd frontend/nextjs && npm run start -- -p "$NEXT_PORT") & \
0 commit comments