Skip to content

Commit e1a34c1

Browse files
chore(internal): fix MCP Dockerfiles so they can be built without buildkit
1 parent 4b55b1f commit e1a34c1

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

packages/mcp-server/Dockerfile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,11 @@ COPY . .
3737
RUN yarn install --frozen-lockfile && \
3838
yarn build
3939

40-
FROM denoland/deno:bin-2.6.10 AS deno_installer
41-
FROM gcr.io/distroless/cc@sha256:66d87e170bc2c5e2b8cf853501141c3c55b4e502b8677595c57534df54a68cc5 AS cc
40+
FROM denoland/deno:alpine-2.7.1
4241

43-
FROM node:24-alpine
42+
# Install node and npm
43+
RUN apk add --no-cache nodejs npm
4444

45-
# Install deno
46-
COPY --from=deno_installer /deno /usr/local/bin/deno
47-
48-
# Add in shared libraries needed by Deno
49-
COPY --from=cc /lib/*-linux-gnu/* /usr/local/lib/
50-
COPY --from=cc /lib/ld-linux-* /lib/
51-
52-
RUN mkdir /lib64 && ln -s /usr/local/lib/ld-linux-* /lib64/
5345
ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
5446

5547
# Add non-root user
@@ -69,6 +61,7 @@ COPY --from=builder /build/dist ./node_modules/scan-documents
6961

7062
# Change ownership to nodejs user
7163
RUN chown -R nodejs:nodejs /app
64+
RUN chown -R nodejs:nodejs /deno-dir
7265

7366
# Switch to non-root user
7467
USER nodejs

0 commit comments

Comments
 (0)