File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 11FROM node:23-bookworm-slim
22
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-
133WORKDIR /app
144
155COPY ../ .
@@ -18,5 +8,4 @@ RUN npm ci
188
199RUN npm run build
2010
21- ENV MDB_MCP_CONNECTION_STRING mongodb://localhost:27017
2211CMD ["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:
1919 " dist/index.js"
2020 ],
2121 " env " : {
22- " MDB_MCP_CONNECTION_STRING " : config.connectionString || "mongodb://localhost:27017"
22+ " MDB_MCP_CONNECTION_STRING " : config.connectionString
2323 }
2424 })
You can’t perform that action at this time.
0 commit comments