Skip to main content
Glama
Dockerfile1.9 kB
FROM golang:1.15.3-alpine AS ssm-builder ARG VERSION=1.2.279.0 RUN set -ex && apk add --no-cache make git gcc libc-dev curl bash zip && \ curl -sLO https://github.com/aws/session-manager-plugin/archive/${VERSION}.tar.gz && \ mkdir -p /go/src/github.com && \ tar xzf ${VERSION}.tar.gz && \ mv session-manager-plugin-${VERSION} /go/src/github.com/session-manager-plugin && \ cd /go/src/github.com/session-manager-plugin && \ make release FROM alpine:latest AS nats-builder RUN apk add --no-cache curl unzip RUN curl -sL https://github.com/nats-io/natscli/releases/download/v0.2.1/nats-0.2.1-linux-amd64.zip -o nats.zip && \ unzip nats.zip -d /tmp && \ mkdir -p /nats-bin && \ mv /tmp/nats-0.2.1-linux-amd64/nats /nats-bin/ FROM alpine:latest AS zed-builder ENV ZED_VERSION=0.30.2 RUN apk add --no-cache curl tar # Determine architecture and download correct zed binary RUN ARCH=$(uname -m) && \ case "$ARCH" in \ x86_64) ARCH_ID=amd64 ;; \ aarch64) ARCH_ID=arm64 ;; \ *) echo "Unsupported architecture: $ARCH" && exit 1 ;; \ esac && \ echo "Detected arch: $ARCH -> $ARCH_ID" && \ ZED_URL="https://github.com/authzed/zed/releases/download/v${ZED_VERSION}/zed_${ZED_VERSION}_linux_${ARCH_ID}_musl.tar.gz" && \ curl -sL "$ZED_URL" -o /tmp/zed.tar.gz && \ tar -xzf /tmp/zed.tar.gz -C /usr/local/bin zed && \ chmod +x /usr/local/bin/zed && \ zed version FROM alpine RUN set -eux; \ apk add --no-cache jq aws-cli bash COPY ./scripts/ /usr/local/bin/si/ RUN chmod +x /usr/local/bin/si/* COPY --from=ssm-builder /go/src/github.com/session-manager-plugin/bin/linux_amd64_plugin/session-manager-plugin /usr/local/bin/ COPY --from=nats-builder /nats-bin/nats /usr/local/bin/nats COPY --from=zed-builder /usr/local/bin/zed /usr/local/bin/zed ENV PATH="/usr/local/bin/si:${PATH}" ENTRYPOINT ["bash", "-c"]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server