-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 807 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (17 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM --platform=$BUILDPLATFORM rust:1.90 AS builder
WORKDIR /app
RUN cargo install cargo-auditable
COPY Cargo.toml Cargo.lock ./
RUN cargo fetch
COPY src ./src
RUN cargo auditable build --release --locked
FROM debian:13-slim
LABEL org.opencontainers.image.authors="jose@sevir.org" \
org.opencontainers.image.url="https://github.com/sevir/mycommandmcp" \
org.opencontainers.image.source="https://github.com/sevir/mycommandmcp" \
org.opencontainers.image.vendor="github.com/sevir/mycommandmcp" \
io.modelcontextprotocol.server.name="io.github.sevir/mycommandmcp"
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app/target/release/mycommandmcp /usr/local/bin/mycommandmcp
ENTRYPOINT ["/usr/local/bin/mycommandmcp"]