mirror of
https://github.com/BrentNeale1/fx-quant.git
synced 2026-07-28 10:57:43 +00:00
4e2db68049
- Dockerfile: add templates copy, ENV PORT, update CMD to live engine - Create src/live/health.py: threaded HTTP health server (/health, /state) - Wire health server into src/live/run.py before engine loop - Dashboard: add unauthenticated /health endpoint, use PORT env var - Create railway.toml with Dockerfile builder and health check config - docker-compose.yml: rename service to live-engine, add PORT env vars Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
462 B
Docker
22 lines
462 B
Docker
FROM python:3.11-slim
|
|
|
|
# LightGBM needs libgomp
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libgomp1 && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.docker.txt .
|
|
RUN pip install --no-cache-dir -r requirements.docker.txt
|
|
|
|
COPY config/system.yaml config/system.yaml
|
|
COPY src/ src/
|
|
COPY sql/ sql/
|
|
COPY templates/ templates/
|
|
|
|
RUN mkdir -p logs models
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV PORT=8080
|
|
CMD ["python", "src/live/run.py"]
|