Created
December 10, 2025 19:44
-
-
Save eskibars/aae5dbc649cd3e5ff98fdfd642490906 to your computer and use it in GitHub Desktop.
Dockerfile for ssh-mcp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First, clone https://github.com/blakerouse/ssh-mcp, then put this Dockerfile in that directory locally to build | |
| # First Docker step: build ssh-mcp | |
| FROM golang:1.25-alpine AS builder | |
| WORKDIR /src | |
| COPY . . | |
| RUN go build -o ssh-mcp . | |
| # Swap to our final container | |
| FROM node:20-alpine | |
| WORKDIR /app | |
| RUN npm install -g supergateway | |
| RUN apk add --no-cache openssh | |
| COPY --from=builder /src/ssh-mcp /app/ssh-mcp | |
| EXPOSE 8004 | |
| CMD ["sh", "-c", "\ | |
| npx -y supergateway \ | |
| --stdio \"./ssh-mcp\" \ | |
| --port 8004 \ | |
| --baseUrl http://0.0.0.0:8004 \ | |
| "] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment