File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 1- # Use a base image with Node.js
21FROM node:23-bookworm-slim
32
43# Install MongoDB Community Edition
@@ -11,18 +10,14 @@ RUN apt-get update && \
1110 apt-get clean && \
1211 rm -rf /var/lib/apt/lists/*
1312
14- # Create a directory for the application
1513WORKDIR /app
1614
1715COPY ../ .
1816
19- # Install application dependencies
2017RUN npm ci
2118
2219RUN npm run build
2320
24- # Copy the entrypoint script
25- COPY ./.smithery/entrypoint.sh /usr/local/bin/entrypoint.sh
26- RUN chmod +x /usr/local/bin/entrypoint.sh
27-
28- ENTRYPOINT ["entrypoint.sh" ]
21+ RUN mongod --fork --logpath /var/log/mongodb.log
22+ ENV MDB_MCP_CONNECTION_STRING mongodb://localhost:27017
23+ CMD ["sh" , "-c" , "mongod --fork --logpath /var/log/mongodb.log --dbpath /data/db && node dist/index.js" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments