From 66bc420edbb3c5b46cffaca99ae85481010483be Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Thu, 16 Jul 2026 09:36:06 +0800 Subject: [PATCH] fix: build pyswisseph in API image --- deploy/railway-api.Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/railway-api.Dockerfile b/deploy/railway-api.Dockerfile index da4cacd7..23131945 100644 --- a/deploy/railway-api.Dockerfile +++ b/deploy/railway-api.Dockerfile @@ -5,7 +5,11 @@ ENV PYTHONUNBUFFERED=1 \ WORKDIR /app COPY requirements.txt ./ -RUN python -m pip install -r requirements.txt +RUN apt-get update \ + && apt-get install -y --no-install-recommends build-essential \ + && python -m pip install -r requirements.txt \ + && apt-get purge -y --auto-remove build-essential \ + && rm -rf /var/lib/apt/lists/* COPY SKILL.md mcp_server.py ./ COPY assets ./assets