Skip to content

Commit 68f78e9

Browse files
authored
feat(24): add support for node v24 (#131)
1 parent f2d27bf commit 68f78e9

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

24/base/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# tags=articulate/node:24
2+
# syntax=docker/dockerfile:1
3+
FROM node:24-bookworm-slim
4+
5+
ENV SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001
6+
7+
ARG TARGETARCH
8+
9+
ADD --chmod=755 https://raw.githubusercontent.com/articulate/docker-bootstrap/main/scripts/install_packages /usr/local/bin/install_packages
10+
ADD --chmod=755 https://raw.githubusercontent.com/articulate/docker-bootstrap/main/scripts/awscli.sh /tmp/awscli.sh
11+
12+
RUN install_packages make dumb-init && /tmp/awscli.sh && rm /tmp/awscli.sh \
13+
# Create our own user and remove the node user
14+
&& groupadd --gid $SERVICE_UID $SERVICE_USER \
15+
&& useradd --create-home --shell /bin/bash --gid $SERVICE_UID --uid $SERVICE_UID $SERVICE_USER \
16+
&& userdel -r node \
17+
# Enable Corepack
18+
&& npm install --global [email protected] \
19+
&& corepack enable
20+
21+
ADD --chmod=755 https://github.com/articulate/docker-bootstrap/releases/latest/download/docker-bootstrap_linux_${TARGETARCH} /entrypoint
22+
ADD --chmod=755 https://raw.githubusercontent.com/articulate/docker-bootstrap/main/scripts/docker-secrets /usr/local/bin/secrets
23+
ADD --chmod=755 https://raw.githubusercontent.com/vishnubob/wait-for-it/81b1373f17855a4dc21156cfe1694c31d7d1792e/wait-for-it.sh /wait-for-it.sh
24+
25+
USER $SERVICE_USER
26+
WORKDIR $SERVICE_ROOT
27+
28+
# Our entrypoint will pull in our environment variables from Consul and Vault,
29+
# and execute whatever command we provided the container.
30+
# See https://github.com/articulate/docker-bootstrap
31+
ENTRYPOINT [ "dumb-init", "--", "/entrypoint" ]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ Base Node.js Docker images.
1717

1818
> 🌟 recommended image
1919
20+
* __articulate/node:24__ 🌟
2021
* __articulate/node:22__ 🌟
2122
* articulate/node:22-lambda
22-
* __articulate/node:20__ 🌟
23+
* __articulate/node:20__
2324
* articulate/node:20-lambda
2425
* articulate/node:18
2526
* articulate/node:18-lambda

0 commit comments

Comments
 (0)