Skip to content

Commit fca7cd7

Browse files
chore: add dockerfile
1 parent 031dd74 commit fca7cd7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM golang:1.23.7 AS build
2+
# Set the working directory
3+
WORKDIR /build
4+
# Copy the current directory contents into the working directory
5+
COPY . .
6+
# Install dependencies
7+
RUN go mod download
8+
# Build the server
9+
RUN CGO_ENABLED=0 go build -o github-mcp-server cmd/github-mcp-server/main.go
10+
# Make a stage to run the app
11+
FROM gcr.io/distroless/base-debian12
12+
# Set the working directory
13+
WORKDIR /server
14+
# Copy the binary from the build stage
15+
COPY --from=build /build/github-mcp-server .
16+
# Command to run the server
17+
CMD ["./github-mcp-server", "stdio"]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy