Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions server/mcp_server_supabase/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git
.venv
__pycache__
*.pyc
.pytest_cache
.mypy_cache
.ruff_cache
39 changes: 39 additions & 0 deletions server/mcp_server_supabase/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM python:3.10.18-bookworm AS builder

ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PATH="/app/.venv/bin:$PATH"

WORKDIR /app

RUN python -m venv /app/.venv \
&& /app/.venv/bin/pip install uv==0.7.5

COPY pyproject.toml uv.lock README.md ./
COPY src ./src

RUN uv export --frozen --no-dev --no-editable --no-emit-project --output-file requirements.txt \
&& sed -i 's#git+https://github.com/volcengine/volcengine-python-sdk.git@b2a1b9d08e9906c60d25c25f0baaf81347f9985b#https://github.com/volcengine/volcengine-python-sdk/archive/b2a1b9d08e9906c60d25c25f0baaf81347f9985b.zip#' requirements.txt \
&& uv pip install --python /app/.venv/bin/python --requirement requirements.txt \
&& uv pip install --python /app/.venv/bin/python --no-deps .

FROM python:3.10.18-bookworm AS runtime

ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PATH="/app/.venv/bin:$PATH"

WORKDIR /app

RUN useradd --create-home --home-dir /home/appuser --uid 10001 appuser

COPY --from=builder --chown=10001:10001 /app/.venv /app/.venv

USER 10001:10001

EXPOSE 8000

ENTRYPOINT ["mcp-server-supabase"]
CMD ["--transport", "streamable-http"]
6 changes: 3 additions & 3 deletions server/mcp_server_supabase/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ authors = [
{ name = "Volcengine", email = "support@volcengine.com" }
]
dependencies = [
"mcp>=1.1.2",
"mcp==1.12.2",
"httpx>=0.27.0",
"pydantic>=2.0.0",
"volcengine-python-sdk @ git+https://github.com/sjcsjcsjc/volcengine-python-sdk.git",
"pydantic>=2.8.0,<3.0.0",
"volcengine-python-sdk @ git+https://github.com/volcengine/volcengine-python-sdk.git@master",
]

[project.optional-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
StopWorkspaceRequest,
)
except ImportError:
logger.error("volcengine-python-sdk not installed")
logger.error("volcenginesdkaidap client dependencies not installed")
raise


Expand Down
Loading
Loading