quant-web/Dockerfile.harvester
epistemophiliac 627b2326df Add Python strategy engine, parameter optimization, and faster Docker builds.
Support builtin and custom generate_signals strategies with SQLite persistence, exhaustive grid scans (VectorBT comb optimization for MA crossover), professional backtest/optimize UI, and split harvester/app requirements with BuildKit pip cache.
2026-06-19 01:29:28 -04:00

28 lines
882 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.11-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PARQUET_DIR=/data/parquet \
TZ=America/New_York
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends bash cron curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements-harvester.txt .
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r requirements-harvester.txt
COPY telemetry.py sync.py ./
COPY scripts/harvester-entrypoint.sh /usr/local/bin/harvester-entrypoint.sh
COPY scripts/run-daily-sync.sh /usr/local/bin/run-daily-sync.sh
COPY scripts/cron-sync /etc/cron.d/quant-sync
RUN chmod +x /usr/local/bin/harvester-entrypoint.sh /usr/local/bin/run-daily-sync.sh \
&& chmod 0644 /etc/cron.d/quant-sync \
&& crontab /etc/cron.d/quant-sync
ENTRYPOINT ["/usr/local/bin/harvester-entrypoint.sh"]