Skip to main content
Glama
Dockerfile1.11 kB
# TCMB MCP - Smithery Deployment Dockerfile # Using official uv image for efficient Python dependency management FROM ghcr.io/astral-sh/uv:python3.12-alpine WORKDIR /app # Enable bytecode compilation and copy mode ENV UV_COMPILE_BYTECODE=1 ENV UV_LINK_MODE=copy # Install dependencies first (better caching) RUN --mount=type=cache,target=/root/.cache/uv \ --mount=type=bind,source=uv.lock,target=uv.lock \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ uv sync --locked --no-install-project --no-dev # Copy application code COPY . /app # Install the project RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --locked --no-dev # Create non-root user for security RUN addgroup -g 1000 appuser && \ adduser -D -u 1000 -G appuser appuser && \ chown -R appuser:appuser /app # Add virtual environment to PATH ENV PATH="/app/.venv/bin:$PATH" # Environment variables for Smithery ENV MCP_TRANSPORT=http ENV PORT=8080 # Switch to non-root user USER appuser # Clear entrypoint from base image ENTRYPOINT [] # Run the MCP server CMD ["python", "-m", "tcmb_mcp"]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ofurkanuygur/tcmb_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server