Files
Brancheneinstufung2/lead-engine/Dockerfile
Floke e825c83caa [30388f42] Infrastructure Hardening & Final Touches: Stabilized Lead Engine (Nginx routing, manager.py, Dockerfile fixes), restored known-good Nginx configs, and ensured all recent fixes are committed. System is ready for migration.
- Fixed Nginx proxy for /feedback/ and /lead/ routes.
- Restored manager.py to use persistent SQLite DB and corrected test lead triggers.
- Refined Dockerfile for lead-engine to ensure clean dependency installs.
- Applied latest API configs (.env) to lead-engine and duckdns services.
- Updated documentation (GEMINI.md, readme.md, RELOCATION.md, lead-engine/README.md) to reflect final state and lessons learned.
- Committed all pending changes to main branch.
2026-03-07 20:01:48 +00:00

22 lines
604 B
Docker

FROM python:3.9-slim
WORKDIR /app
# Ensure we have the latest pip
RUN pip install --upgrade pip
# Copy only the requirements file first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
ENV PYTHONUNBUFFERED=1
EXPOSE 8501
EXPOSE 8004
# Start monitor, feedback server, and streamlit
CMD ["sh", "-c", "python monitor.py & uvicorn trading_twins.manager:app --host 0.0.0.0 --port 8004 --reload --log-level debug & streamlit run app.py --server.port=8501 --server.address=0.0.0.0"]