Skip to content

Commit a0d6a7d

Browse files
committed
feat: build linux execute file
Former-commit-id: 9cbdd19 Former-commit-id: 621db0bd58fa8cc280b23ece284a44133c8b6880
1 parent d846fa2 commit a0d6a7d

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.env
2-
config/databases.json
2+
config/

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Build the server
44
build:
55
go build -o mcp-server cmd/server/main.go
6+
GOOS=linux GOARCH=amd64 go build -o server cmd/server/main.go
67

78
# Run the server in stdio mode
89
run-stdio: build

server.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5ab1a83b8bc512eb46dfd418304925e7ccf4590a
1+
c001623c6b364085f24f5e98f7667a1abeb7b7af

test.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ USER service-user
1010

1111
WORKDIR /app
1212

13-
# RUN git clone https://github.com/FreePeak/db-mcp-server . && git checkout a298713d08f93dd67292818d13ed358a51129811
13+
# RUN git clone https://github.com/FreePeak/db-mcp-server . && git checkout 574f0d09e234be3167be3171fd507dd6ca0fd445
1414

15+
# Copy prebuilt binary from host to container
1516
COPY . /app
1617

17-
CMD ["mcp-proxy","/app/mcp-server","-t","stdio"]
18+
CMD ["mcp-proxy","/app/server","-t","stdio"]

0 commit comments

Comments
 (0)