Skip to main content
Glama
Dockerfile.ubuntu-npm1.4 kB
# Test npm package installation on Ubuntu FROM ubuntu:22.04 # Install Node.js and npm RUN apt-get update && apt-get install -y \ curl \ bash \ wget \ gnupg \ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y nodejs \ && rm -rf /var/lib/apt/lists/* # Create test directory WORKDIR /test # Copy package files for local testing COPY package.json install.js index.js ./ COPY bin/ ./bin/ COPY dist/ ./dist/ # Run Ubuntu NPM tests during build RUN echo "=== Testing NPM Package Installation (Ubuntu) ===" && \ echo "OS: $(cat /etc/os-release | grep PRETTY_NAME)" && \ echo "Node version: $(node --version)" && \ echo "NPM version: $(npm --version)" && \ echo "" && \ echo "1. Testing local package installation..." && \ npm install . && \ echo "" && \ echo "2. Testing brum command..." && \ ./node_modules/.bin/brum --help | head -5 && \ echo "" && \ echo "3. Testing global installation..." && \ npm install -g . && \ echo "" && \ echo "4. Testing global brum command..." && \ (brum --version || echo "Version command not available") && \ brum --help | head -5 && \ echo "" && \ echo "5. Testing npx simulation..." && \ npx --yes . --help | head -5 && \ echo "" && \ echo "✅ Ubuntu NPM package test completed successfully!" CMD ["brum", "--help"]

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/standardbeagle/brummer'

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