Skip to content

Commit ee272bf

Browse files
committed
fix: add Dockerfile
1 parent d646ee6 commit ee272bf

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Build stage
2+
FROM golang:1.25-alpine AS builder
3+
# Set necessary environmet variables needed for our image
4+
ENV GO111MODULE=on \
5+
CGO_ENABLED=0 \
6+
GOOS=linux
7+
WORKDIR /app
8+
COPY go.mod .
9+
COPY go.sum .
10+
RUN go mod download
11+
COPY . .
12+
ARG VERSION=dev
13+
RUN go build -ldflags "-X main.version=${VERSION}" -o mcp-parseable-server ./cmd/mcp_parseable_server
14+
15+
# Final image
16+
FROM alpine:3.19
17+
WORKDIR /app
18+
COPY --from=builder /app/mcp-parseable-server .
19+
EXPOSE 9034
20+
ENTRYPOINT ["./mcp-parseable-server"]

0 commit comments

Comments
 (0)