Skip to content

Commit 7617674

Browse files
committed
Add mcp user to runner container
1 parent ef0b4a9 commit 7617674

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.smithery/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ RUN npm ci && npm run build
1919

2020
# ----- Production Stage -----
2121
FROM node:lts-alpine
22+
RUN addgroup -S mcp && adduser -S mcp -G mcp -s /sbin/nologin
23+
RUN chown -R mcp:mcp /dist
24+
USER mcp
2225

2326
# Copy built artifacts
2427
COPY --from=builder /home/mcp/dist ./dist

0 commit comments

Comments
 (0)