maven-mcp-server

by Bigsy
Verified
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile # Use an official Node.js runtime as a parent image FROM node:18-slim AS build # Set the working directory in the container WORKDIR /app # Copy the package.json and package-lock.json files COPY package.json package-lock.json ./ # Install the project dependencies RUN npm install # Copy the rest of the application code COPY . . # Build the application RUN npm run build # Use a smaller Node.js runtime for the production environment FROM node:18-slim AS production # Set the working directory in the container WORKDIR /app # Copy the built application from the build stage COPY --from=build /app/build ./build # Set the command to run the application ENTRYPOINT ["node", "build/index.js"]