File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
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" ]
Original file line number Diff line number Diff line change @@ -17,9 +17,10 @@ Base Node.js Docker images.
17
17
18
18
> 🌟 recommended image
19
19
20
+ * __ articulate/node:24__ 🌟
20
21
* __ articulate/node:22__ 🌟
21
22
* articulate/node:22-lambda
22
- * __ articulate/node:20__ 🌟
23
+ * __ articulate/node:20__
23
24
* articulate/node:20-lambda
24
25
* articulate/node:18
25
26
* articulate/node:18-lambda
You can’t perform that action at this time.
0 commit comments