get a working mcp server

This commit is contained in:
Vincent Stuyck
2025-12-19 01:50:07 +01:00
parent 29399508a0
commit 8a3ec2915c
5 changed files with 3113 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
# Use the official Rust image as build environment
FROM rust:1.90 AS builder
WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN cargo build --release
FROM debian:bookworm-slim
RUN apt-get update && apt-get upgrade -y
WORKDIR /app
COPY --from=builder /app/target/release/checkmk-mcp /app/checkmk-mcp
RUN useradd -r -s /bin/false -m -d /app appuser
RUN chown -R appuser:appuser /app
USER appuser
EXPOSE 8000
CMD ["./checkmk-mcp"]