Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# An elaborated scheme to build all the dependencies of all packages first in a cached layer
# https://stackoverflow.com/a/63142468/134409
# https://medium.com/@emilefugulin/building-a-sane-docker-image-for-typescript-lerna-and-prisma-2-76d8ff9926e4
FROM node:24.22.1-bookworm-slim@sha256:55fb5f5a527ea2c5c4a95f963e48ef90aa38c7b346054fdc8ee9957a2b55d205 AS filter-packages-json
FROM node:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9 AS filter-packages-json
LABEL maintainer="Developer Relations <developer-relations-team@bitgo.com>"

COPY package.json yarn.lock lerna.json ./
Expand All @@ -12,11 +12,14 @@ COPY modules ./modules
# delete all the non package.json files under `./modules/`
RUN find modules \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xargs rm -rf

FROM node:24.22.1-bookworm-slim@sha256:55fb5f5a527ea2c5c4a95f963e48ef90aa38c7b346054fdc8ee9957a2b55d205 AS builder
FROM node:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9 AS builder
ARG SOCKET_SECURITY_MODE=monitor
ENV SOCKET_SECURITY_MODE=${SOCKET_SECURITY_MODE}
# Puppeteer is only used by browser tests; the Express image never needs a bundled Chrome.
ENV PUPPETEER_SKIP_DOWNLOAD=true
RUN apt-get update && apt-get install -y git python3 make g++ libtool autoconf automake
RUN npm i -g --no-fund sfw@2.0.6 && sfw true
# Node 26+ official images no longer bundle Yarn; pin the version from package.json "packageManager".
RUN npm i -g --no-fund sfw@2.0.6 yarn@1.22.22 && sfw true
WORKDIR /tmp/bitgo
COPY --from=filter-packages-json /tmp/bitgo .
# (skip postinstall) https://github.com/yarnpkg/yarn/issues/4100#issuecomment-388944260
Expand All @@ -34,8 +37,9 @@ RUN \
rm -r modules/*/src


FROM node:24.22.1-bookworm-slim@sha256:55fb5f5a527ea2c5c4a95f963e48ef90aa38c7b346054fdc8ee9957a2b55d205
FROM node:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9
RUN apt-get update && apt-get install -y tini
RUN npm i -g --no-fund yarn@1.22.22
# copy the root node_modules to the bitgo-express parent node_modules
COPY --from=builder /tmp/bitgo/node_modules /var/node_modules/
COPY --from=builder /tmp/bitgo/modules/express /var/bitgo-express/
Expand Down
2 changes: 1 addition & 1 deletion modules/express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $ yarn build-docker-express
$ docker run -it bitgo-express:latest
```

The BitGo Express Docker image tracks the older of the two most recent Node.js Long-Term Support (LTS) releases. It currently builds and runs on Node.js 24.
The BitGo Express Docker image tracks the newest Node.js Long-Term Support (LTS) release. It currently builds and runs on Node.js 26.

## From source

Expand Down
Loading