File tree 2 files changed +1
-12
lines changed
2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:23-bookworm-slim
2
2
3
- # Install MongoDB Community Edition
4
- RUN apt-get update && \
5
- apt-get install -y gnupg curl python3 build-essential && \
6
- curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor && \
7
- echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 main" | tee /etc/apt/sources.list.d/mongodb-org-8.0.list && \
8
- apt-get update && \
9
- apt-get install -y mongodb-org && \
10
- apt-get clean && \
11
- rm -rf /var/lib/apt/lists/*
12
-
13
3
WORKDIR /app
14
4
15
5
COPY ../ .
@@ -18,5 +8,4 @@ RUN npm ci
18
8
19
9
RUN npm run build
20
10
21
- ENV MDB_MCP_CONNECTION_STRING mongodb://localhost:27017
22
11
CMD ["sh" , "-c" , "mongod --fork --logpath /var/log/mongodb.log --dbpath /data/db && node dist/index.js" ]
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ startCommand:
19
19
" dist/index.js"
20
20
],
21
21
" env " : {
22
- " MDB_MCP_CONNECTION_STRING " : config.connectionString || "mongodb://localhost:27017"
22
+ " MDB_MCP_CONNECTION_STRING " : config.connectionString
23
23
}
24
24
})
You can’t perform that action at this time.
0 commit comments