Skip to content

Commit 111b4cf

Browse files
committed
chore: update Dockerfile to use node:lts-bookworm-slim and streamline node installation, and update Python version。 #7
1 parent 941c433 commit 111b4cf

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Dockerfile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ RUN go mod download
55
COPY . .
66
RUN make build
77

8-
FROM ghcr.io/astral-sh/uv:debian-slim
9-
ENV DEBIAN_FRONTEND=noninteractive \
10-
NODE_VERSION=lts.x
11-
RUN apt-get update && \
12-
apt-get install -y --no-install-recommends curl ca-certificates && \
13-
curl -fsSL --fail https://deb.nodesource.com/setup_${NODE_VERSION} | bash - && \
14-
apt-get update && \
15-
apt-get install -y --no-install-recommends nodejs && \
16-
apt-get clean && \
17-
rm -rf /var/lib/apt/lists/*
8+
FROM node:lts-bookworm-slim AS node
9+
10+
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
11+
12+
COPY --from=node /usr/local/bin/node /usr/local/bin/node
13+
#COPY --from=node /usr/local/include/node /usr/local/include/node
14+
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
15+
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
16+
ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx && \
17+
ln -s /usr/local/bin/node /usr/local/bin/nodejs
18+
1819
COPY --from=builder /app/build/mcp-proxy /main
1920
ENTRYPOINT ["/main"]
2021
CMD ["--config", "/config/config.json"]

0 commit comments

Comments
 (0)