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
2
1
FROM node:23-bookworm-slim
3
2
4
3
# Install MongoDB Community Edition
@@ -11,18 +10,14 @@ RUN apt-get update && \
11
10
apt-get clean && \
12
11
rm -rf /var/lib/apt/lists/*
13
12
14
- # Create a directory for the application
15
13
WORKDIR /app
16
14
17
15
COPY ../ .
18
16
19
- # Install application dependencies
20
17
RUN npm ci
21
18
22
19
RUN npm run build
23
20
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