Files
Jyotisha/deploy/railway-api.Dockerfile
T
jesse-ux 6b3248bf53
Independent Staging Quality Gate / validate (push) Successful in 9m36s
Independent Staging Quality Gate / publish (push) Successful in 18m18s
fix(vedastro): pin SDK at install and cap free-tier wait
Image build patches vedastro.check_for_update to a no-op after pip install so import cannot hit pypi or upgrade the pin. Free-tier queue waits are capped to VEDASTRO_TIMEOUT_SECONDS and fail fast as free_tier_rate_limited. Gateway status exposes runtime mode as booleans without secrets. BUG-719 resolved; BUG-720 stays investigating until production env is filled in.
2026-09-16 00:25:15 +08:00

27 lines
1.0 KiB
Docker

FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.12-slim
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ \
PIP_DEFAULT_TIMEOUT=60
WORKDIR /app
COPY requirements.txt deploy/patch_vedastro_update_check.py ./
RUN sed -i 's|http://deb.debian.org|https://mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources \
&& apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 update \
&& apt-get install -y --no-install-recommends build-essential nodejs \
&& python -m pip install -r requirements.txt \
&& python patch_vedastro_update_check.py \
&& apt-get purge -y --auto-remove build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY SKILL.md mcp_server.py ./
COPY assets ./assets
COPY jyotish_vedic ./jyotish_vedic
COPY references ./references
COPY scripts ./scripts
COPY skills ./skills
COPY vendor ./vendor
CMD ["sh", "-c", "exec python scripts/jyotish_api_server.py --host 0.0.0.0 --port \"${PORT:-5200}\""]