- 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.
22 lines
604 B
Docker
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"] |