Skip to content

Commit 257f07b

Browse files
chore(internal): fix MCP Dockerfiles so they can be built without buildkit
1 parent a6fd091 commit 257f07b

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

packages/mcp-server/Dockerfile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,11 @@ ENV CI=true
4343
RUN pnpm install --frozen-lockfile && \
4444
pnpm build
4545

46-
FROM denoland/deno:bin-2.6.10 AS deno_installer
47-
FROM gcr.io/distroless/cc@sha256:66d87e170bc2c5e2b8cf853501141c3c55b4e502b8677595c57534df54a68cc5 AS cc
46+
FROM denoland/deno:alpine-2.7.1
4847

49-
FROM node:24-alpine
48+
# Install node and npm
49+
RUN apk add --no-cache nodejs npm
5050

51-
# Install deno
52-
COPY --from=deno_installer /deno /usr/local/bin/deno
53-
54-
# Add in shared libraries needed by Deno
55-
COPY --from=cc /lib/*-linux-gnu/* /usr/local/lib/
56-
COPY --from=cc /lib/ld-linux-* /lib/
57-
58-
RUN mkdir /lib64 && ln -s /usr/local/lib/ld-linux-* /lib64/
5951
ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
6052

6153
# Add non-root user
@@ -72,6 +64,7 @@ COPY --from=builder /build/dist ./node_modules/cas-parser-node
7264

7365
# Change ownership to nodejs user
7466
RUN chown -R nodejs:nodejs /app
67+
RUN chown -R nodejs:nodejs /deno-dir
7568

7669
# Switch to non-root user
7770
USER nodejs

0 commit comments

Comments
 (0)