Skip to content

Commit 8f29467

Browse files
feat: add Node.js 24 lambda image (#138)
1 parent 6c3e40c commit 8f29467

3 files changed

Lines changed: 32 additions & 1 deletion

File tree

24/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN install_packages make dumb-init ca-certificates && /tmp/awscli.sh && rm /tmp
1717
&& useradd --create-home --shell /bin/bash --gid $SERVICE_UID --uid $SERVICE_UID $SERVICE_USER \
1818
&& userdel -r node \
1919
# Enable Corepack
20-
&& npm install --global corepack@0.33.0 \
20+
&& npm install --global corepack@0.34.6 \
2121
&& corepack enable \
2222
# Split PEM bundle into individual cert files for update-ca-certificates
2323
&& csplit -s -z -n 3 -f /usr/local/share/ca-certificates/aws-rds-ca- \

24/lambda/Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# tags=articulate/node:24-lambda
2+
# syntax=docker/dockerfile:1
3+
FROM public.ecr.aws/lambda/nodejs:24
4+
5+
ENV AWS_DEFAULT_REGION=us-east-1 SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001 COREPACK_ENABLE_DOWNLOAD_PROMPT=0
6+
7+
ARG TARGETARCH
8+
9+
RUN dnf -y install make zip shadow-utils \
10+
# Add service user
11+
&& /usr/sbin/groupadd --gid $SERVICE_UID $SERVICE_USER \
12+
&& /usr/sbin/useradd --create-home --shell /bin/bash --uid $SERVICE_UID --gid $SERVICE_UID $SERVICE_USER \
13+
# Enable Corepack
14+
&& npm install --global corepack@0.34.6 \
15+
&& corepack enable \
16+
# clean up
17+
&& dnf -y remove shadow-utils \
18+
&& dnf clean all \
19+
&& npm cache clean --force
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+
24+
USER $SERVICE_USER
25+
WORKDIR $SERVICE_ROOT
26+
27+
# Our entrypoint will pull in our environment variables from Consul and Vault,
28+
# and execute whatever command we provided the container.
29+
# See https://github.com/articulate/docker-bootstrap
30+
ENTRYPOINT [ "/entrypoint" ]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Base Node.js Docker images.
2020
> 🌟 recommended image
2121
2222
* __articulate/node:24__ 🌟
23+
* articulate/node:24-lambda
2324
* __articulate/node:22__ 🌟
2425
* articulate/node:22-lambda
2526
* __articulate/node:20__

0 commit comments

Comments
 (0)