File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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- \
Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff 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__
You can’t perform that action at this time.
0 commit comments