# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM node:lts-alpine
WORKDIR /app
# Copy package files and install dependencies
COPY package.json package-lock.json ./
RUN npm ci --ignore-scripts
# Copy TypeScript configuration
COPY tsconfig.json ./
# Copy all source files
COPY . .
# Build the TypeScript source
RUN npm run build
# Copy and set up entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Create non-root user for security
RUN addgroup -g 1001 -S nodejs
RUN adduser -S postgres-mcp -u 1001
# Change ownership of the app directory
RUN chown -R postgres-mcp:nodejs /app
USER postgres-mcp
# Expose any necessary ports if needed (optional)
# EXPOSE 3000
# Use entrypoint script for flexible configuration
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD []
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/HenkDz/postgresql-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server