-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (28 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
44 lines (28 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM rust:1.91.1-alpine AS builder
WORKDIR /app
# Build
RUN apk update && apk add --no-cache pkgconf openssl-dev openssl-libs-static
# Very ugly trick to fetch the dependencis without the need of actually copying the source code
COPY Cargo.toml Cargo.lock ./
COPY mcp-tools-codegen/Cargo.toml mcp-tools-codegen/Cargo.toml
RUN mkdir -p src mcp-tools-codegen/src \
&& echo 'fn main() {}' > src/main.rs \
&& echo 'pub fn dummy() {}' > mcp-tools-codegen/src/lib.rs
RUN cargo fetch
COPY . .
RUN cargo build --release --bin mcp-for-azure-devops-boards
# Runtime
FROM alpine:3.22 AS runtime
LABEL com.github.actions.name="auto publish"
LABEL com.github.actions.icon="package"
LABEL com.github.actions.color="blue"
LABEL version="0.7.0"
LABEL repository="https://github.com/danielealbano/mcp-for-azure-devops-boards"
LABEL homepage="https://github.com/danielealbano/mcp-for-azure-devops-boards"
LABEL maintainer="Daniele Salvatore Albano <d.albano@gmail.com>"
RUN apk update && apk add --no-cache ca-certificates tzdata
RUN adduser -D -g '' appuser
WORKDIR /app
COPY --from=builder /app/target/release/mcp-for-azure-devops-boards /usr/local/bin/mcp-for-azure-devops-boards
USER appuser
ENTRYPOINT ["mcp-for-azure-devops-boards"]