get a working mcp server
This commit is contained in:
+23
@@ -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"]
|
||||
Reference in New Issue
Block a user