File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # 1. Switch to a Debian-based image for glibc compatibility
2- FROM node:24-bookworm-slim
1+ FROM node:24-bookworm-slim AS node_runtime
2+
3+ FROM oven/bun:1 AS bun_runtime
4+
5+ FROM python:3.14-slim-bookworm
36
47RUN apt-get update && apt-get install -y \
58 curl \
69 bash \
710 gosu \
811 git \
9- python3 \
10- python3-pip \
11- python3-venv \
1212 golang-go \
1313 && rm -rf /var/lib/apt/lists/*
1414
15+ COPY --from=node_runtime /usr/local/bin/node /usr/local/bin/node
16+ COPY --from=node_runtime /usr/local/bin/npm /usr/local/bin/npm
17+ COPY --from=node_runtime /usr/local/bin/npx /usr/local/bin/npx
18+ COPY --from=node_runtime /usr/local/bin/corepack /usr/local/bin/corepack
19+ COPY --from=node_runtime /usr/local/include/node /usr/local/include/node
20+ COPY --from=node_runtime /usr/local/lib/node_modules /usr/local/lib/node_modules
21+ COPY --from=bun_runtime /usr/local/bin/bun /usr/local/bin/bun
22+ COPY --from=bun_runtime /usr/local/bin/bunx /usr/local/bin/bunx
23+
1524RUN npm i -g \
1625 opencode-ai \
1726 bash-language-server \
You can’t perform that action at this time.
0 commit comments