构建期货数据采集与三层打分系统

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
fish
2026-05-02 22:56:10 +08:00
parent e55aa8603b
commit c466dbbf3f
12 changed files with 681 additions and 0 deletions

28
tushare/Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM python:3.13.7-alpine3.22
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
TZ=Asia/Shanghai \
DB_PATH=/app/data/futures.db
WORKDIR /app
# 运行时依赖 + 时区
RUN apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 非 root 用户
RUN adduser -D -u 1000 app \
&& mkdir -p /app/data \
&& chown app:app /app/data
COPY --chown=app:app src ./src
USER app
CMD ["python", "-m", "src.main", "FG2609.ZCE"]