feat: import 6 MCP Dockerfile + base

This commit is contained in:
AdrianoDev
2026-04-27 17:35:00 +02:00
parent 6fc3d1d94f
commit 6052d892fc
7 changed files with 158 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
ARG BASE_TAG=latest
FROM cerbero-base:${BASE_TAG} AS builder
COPY services/mcp-bybit ./services/mcp-bybit
RUN uv sync --frozen --no-dev --package mcp-bybit
FROM python:3.11-slim AS runtime
LABEL org.opencontainers.image.source="https://github.com/AdrianoDev/cerbero" \
cerbero.service="mcp-bybit"
WORKDIR /app
COPY --from=builder /app /app
ENV PATH="/app/.venv/bin:$PATH"
RUN useradd -m -u 1000 app
USER app
ENV HOST=0.0.0.0 PORT=9019
EXPOSE 9019
HEALTHCHECK --interval=30s --timeout=5s --retries=3 --start-period=15s \
CMD python -c "import httpx, os; httpx.get(f'http://localhost:{os.environ.get(\"PORT\",\"9019\")}/health').raise_for_status()"
CMD ["mcp-bybit"]