summaryrefslogtreecommitdiffhomepage
path: root/packages/containers/bun-node/Dockerfile
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-01-29 23:07:58 -0500
committerDax Raad <[email protected]>2026-01-29 23:07:58 -0500
commit5cfb5fdd0664632956056a1004ab1857a8eb3673 (patch)
treedf571be285045a90ae461ce73a966d24f95146a1 /packages/containers/bun-node/Dockerfile
parent30969dc33e20858a9b7773aa19ad345335a644c1 (diff)
downloadopencode-5cfb5fdd0664632956056a1004ab1857a8eb3673.tar.gz
opencode-5cfb5fdd0664632956056a1004ab1857a8eb3673.zip
ci: add container build workflow
Add prebuilt build images and a publish workflow to speed CI by reusing heavy dependencies.
Diffstat (limited to 'packages/containers/bun-node/Dockerfile')
-rw-r--r--packages/containers/bun-node/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/containers/bun-node/Dockerfile b/packages/containers/bun-node/Dockerfile
new file mode 100644
index 000000000..69c780396
--- /dev/null
+++ b/packages/containers/bun-node/Dockerfile
@@ -0,0 +1,22 @@
+ARG REGISTRY=ghcr.io/anomalyco
+FROM ${REGISTRY}/build/base:24.04
+
+ARG NODE_VERSION=24.4.0
+ARG BUN_VERSION=1.2.4
+
+ENV BUN_INSTALL=/opt/bun
+ENV PATH=/opt/bun/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+
+RUN set -euo pipefail; \
+ arch=$(uname -m); \
+ node_arch=x64; \
+ if [ "$arch" = "aarch64" ]; then node_arch=arm64; fi; \
+ curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${node_arch}.tar.xz" \
+ | tar -xJf - -C /usr/local --strip-components=1; \
+ corepack enable
+
+RUN set -euo pipefail; \
+ curl -fsSL https://bun.sh/install | bash -s -- "bun-v${BUN_VERSION}"; \
+ bun --version; \
+ node --version; \
+ npm --version