From a0258a4376cb63b8784dc3398ed9e10492da8eb9 Mon Sep 17 00:00:00 2001 From: Tyler Lafleur Date: Fri, 19 Sep 2025 19:51:54 -0500 Subject: [PATCH] Remove conflicting mcp_server/Dockerfile with cache mounts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mcp_server/Dockerfile contained --mount=type=cache directives that Railway doesn't support. Railway will now use the root Dockerfile which is optimized for Railway deployment without cache mounts. Fixes: Cache mount ID is not prefixed with cache key error 🚀 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude --- mcp_server/Dockerfile | 49 ------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 mcp_server/Dockerfile diff --git a/mcp_server/Dockerfile b/mcp_server/Dockerfile deleted file mode 100644 index 902ba05f..00000000 --- a/mcp_server/Dockerfile +++ /dev/null @@ -1,49 +0,0 @@ -# syntax=docker/dockerfile:1.9 -FROM python:3.12-slim - -WORKDIR /app - -# Install system dependencies -RUN apt-get update && apt-get install -y --no-install-recommends \ - curl \ - ca-certificates \ - && rm -rf /var/lib/apt/lists/* - -# Install uv using the installer script -ADD https://astral.sh/uv/install.sh /uv-installer.sh -RUN sh /uv-installer.sh && rm /uv-installer.sh - -# Add uv to PATH -ENV PATH="/root/.local/bin:${PATH}" - -# Configure uv for optimal Docker usage -ENV UV_COMPILE_BYTECODE=1 \ - UV_LINK_MODE=copy \ - UV_PYTHON_DOWNLOADS=never \ - MCP_SERVER_HOST="0.0.0.0" \ - PYTHONUNBUFFERED=1 - -# Create non-root user -RUN groupadd -r app && useradd -r -d /app -g app app - -# Copy project files for dependency installation (better caching) -COPY pyproject.toml uv.lock ./ - -# Install dependencies first (better layer caching) -RUN --mount=type=cache,id=/root/.cache/uv,target=/root/.cache/uv \ - uv sync --frozen --no-dev - -# Copy application code -COPY graphiti_mcp_server.py ./ - -# Change ownership to app user -RUN chown -Rv app:app /app - -# Switch to non-root user -USER app - -# Expose port -EXPOSE 8000 - -# Command to run the application -CMD ["uv", "run", "graphiti_mcp_server.py"]