Skip to main content
Glama
Dockerfile1.68 kB
ARG BASE_VERSION FROM postgres:${BASE_VERSION} ARG BASE_VERSION # RUN apk add --no-cache rsyslog RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends \ ca-certificates \ curl \ busybox \ procps \ ; \ rm -rf /var/lib/apt/lists/* ARG TARGETPLATFORM RUN set -eux; \ case "$TARGETPLATFORM" in \ linux/arm64) export PGA_BINARY="pganalyze-collector-linux-arm64" ;; \ linux/amd64) export PGA_BINARY="pganalyze-collector-linux-amd64" ;; \ esac; \ \ curl -L -o /usr/bin/pganalyze-collector https://github.com/pganalyze/collector/releases/latest/download/${PGA_BINARY} \ && chmod +x /usr/bin/pganalyze-collector RUN addgroup pganalyze \ && adduser --gecos "" --disabled-password pganalyze --ingroup pganalyze COPY multiple-database-support.sh /docker-entrypoint-initdb.d/ COPY entrypoint-wrapper.sh /usr/local/bin/entrypoint-wrapper.sh COPY pganalyze-collector.conf.sample /etc/pganalyze-collector.conf.sample COPY postgresql-additions.conf /etc/postgresql-additions.conf COPY server.key /var/lib/postgresql/ COPY server.crt /var/lib/postgresql/ RUN chown root:ssl-cert /var/lib/postgresql/server.key && chmod 740 /var/lib/postgresql/server.key RUN chown root:ssl-cert /var/lib/postgresql/server.crt && chmod 740 /var/lib/postgresql/server.crt RUN chmod +x /usr/local/bin/entrypoint-wrapper.sh \ && mkdir -p /etc/postgresql \ && cp /usr/share/postgresql/postgresql.conf.sample /etc/postgresql/postgresql.conf \ && cat /etc/postgresql-additions.conf >> /etc/postgresql/postgresql.conf ENTRYPOINT ["/usr/local/bin/entrypoint-wrapper.sh"] CMD ["postgres"]

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