Streamlit + VectorBT dashboard, Parquet harvester with nightly cron, Authentik header auth, SQLite strategy persistence, and Bugsink telemetry. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
824 B
Docker
27 lines
824 B
Docker
FROM python:3.11-slim-bookworm
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=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.txt .
|
|
RUN pip install --no-cache-dir -r requirements.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"]
|