We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jacopoc/mcp-for-apache-ofbiz'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
# syntax=docker/dockerfile:1
ARG NODE_VERSION=22.22.0
################################################################################
# Use node image for base image for all stages.
FROM node:${NODE_VERSION}-alpine AS base
# Set working directory for all build stages.
WORKDIR /usr/src/app
################################################################################
# Generate package-lock.json if it is not already present in the build context.
# This allows the subsequent stages to use npm ci for faster, deterministic installs.
FROM base AS lockfile
COPY package.json .
COPY package-lock.jso[n] .
RUN --mount=type=cache,target=/root/.npm \
[ -f package-lock.json ] || npm install --package-lock-only
################################################################################
# Create a stage for installing production dependencies.
FROM base AS deps
# Download dependencies as a separate step to take advantage of Docker's caching.
# Leverage a cache mount to /root/.npm to speed up subsequent builds.
COPY package.json .
COPY --from=lockfile /usr/src/app/package-lock.json .
RUN --mount=type=cache,target=/root/.npm \
npm ci --omit=dev
################################################################################
# Create a stage for building the application.
FROM deps AS build
# Download additional development dependencies before building, as this project requires
# "devDependencies" to be installed to build.
COPY package.json .
COPY --from=lockfile /usr/src/app/package-lock.json .
RUN --mount=type=cache,target=/root/.npm \
SKIP_PREPARE=1 npm ci
# Copy the rest of the source files into the image.
COPY . .
# Run the build script.
RUN npm run build
################################################################################
# Create a new stage to run the application with minimal runtime dependencies
# where the necessary files are copied from the build stage.
FROM base AS final
# Use production node environment by default.
ENV NODE_ENV=production
# Run the application as a non-root user.
USER node
# Copy package.json so that package manager commands can be used.
COPY package.json .
# Copy the production dependencies from the deps stage and also
# the built application from the build stage into the image.
COPY --from=deps /usr/src/app/node_modules ./node_modules
COPY --from=build /usr/src/app/build ./build
# Expose the port that the application listens on.
EXPOSE 3000
# Run the application.
# The two mandatory arguments are the paths to the config and tools directories,
# which are expected to be mounted as volumes at runtime.
ENTRYPOINT ["node", "build/server.js"]
CMD ["/config", "/tools"]