Skip to content

Commit e4bb1e1

Browse files
committed
adjust smithery dockerfile
1 parent 5760da4 commit e4bb1e1

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

Dockerfile

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
1-
FROM golang:1.24.2-alpine AS builder
2-
3-
RUN apk add --no-cache curl git bash && \
4-
curl -sL https://taskfile.dev/install.sh | sh
5-
6-
WORKDIR /app
7-
8-
COPY .git .git
9-
COPY Taskfile.yml .
10-
COPY src src
11-
12-
RUN task setup
13-
14-
WORKDIR /app/src
15-
RUN go build -v -o /app/opslevel-mcp ./main.go
16-
171
FROM alpine:latest
182

193
RUN apk add --no-cache ca-certificates
204

21-
COPY --from=builder /app/opslevel-mcp /opslevel-mcp
5+
COPY --from=public.ecr.aws/opslevel/mcp:latest /usr/local/bin/opslevel-mcp /bin/opslevel-mcp
226

23-
CMD ["/opslevel-mcp"]
7+
ENTRYPOINT ["/opslevel-mcp"]

src/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ WORKDIR /app
55
RUN apt-get update && \
66
apt-get install -y ca-certificates jq && \
77
apt-get purge && apt-get clean && apt-get autoclean
8-
COPY opslevel /usr/local/bin
8+
COPY opslevel-mcp /usr/local/bin

0 commit comments

Comments
 (0)