Fix Docker build: bundle din-leumi instead of git clone

Removes GITEA_TOKEN dependency from build by copying din-leumi
MCP server source directly into the Docker context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 08:21:31 +00:00
parent 316dd2aefb
commit 324807ff1d
15 changed files with 1331 additions and 5 deletions

View File

@@ -11,11 +11,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY mcp-server/pyproject.toml /app/mcp-server/pyproject.toml
COPY mcp-server/src/ /app/mcp-server/src/
# Clone and install Din Leumi MCP server
ARG GITEA_TOKEN=""
RUN git clone https://Chaim:${GITEA_TOKEN}@gitea.nautilus.marcusgroup.org/Chaim/din-leumi.git /tmp/din-leumi && \
cp -r /tmp/din-leumi/mcp-server /app/din-leumi && \
rm -rf /tmp/din-leumi/.git
# Copy Din Leumi MCP server source
COPY din-leumi/ /app/din-leumi/
# Install both MCP servers + web deps
RUN pip install --no-cache-dir /app/mcp-server /app/din-leumi && \
@@ -25,6 +22,7 @@ RUN pip install --no-cache-dir /app/mcp-server /app/din-leumi && \
COPY web/ /app/web/
ENV PYTHONPATH=/app/mcp-server/src:/app/din-leumi/src
ENV DOTENV_PATH=/dev/null
ENV DOTENV_PATH=/home/chaim/.env
EXPOSE 8080