Skip to content

Commit 3b07c85

Browse files
committed
more dockerfile tweaks
1 parent 463405c commit 3b07c85

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

.smithery/Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Use a base image with Node.js
21
FROM 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
1513
WORKDIR /app
1614

1715
COPY ../ .
1816

19-
# Install application dependencies
2017
RUN npm ci
2118

2219
RUN 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"]

.smithery/entrypoint.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)