Add Node.js 20.x to image
This commit is contained in:
parent
8711d15806
commit
9a3a662aa0
2 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@ FROM debian:bookworm
|
||||||
|
|
||||||
ARG KUBE_RELEASE=v1.30.2
|
ARG KUBE_RELEASE=v1.30.2
|
||||||
ARG YQ_VERSION=v4.44.2
|
ARG YQ_VERSION=v4.44.2
|
||||||
|
ARG NODE_VERSION=20.x
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
|
@ -32,7 +33,10 @@ RUN set -eux; \
|
||||||
| tar --extract --gzip --to-stdout ./yq_linux_amd64 \
|
| tar --extract --gzip --to-stdout ./yq_linux_amd64 \
|
||||||
| install --owner=root --group=root --mode=0755 /dev/stdin /usr/local/bin/yq \
|
| install --owner=root --group=root --mode=0755 /dev/stdin /usr/local/bin/yq \
|
||||||
; \
|
; \
|
||||||
|
curl --silent --location "https://deb.nodesource.com/setup_$NODE_VERSION" | bash; \
|
||||||
|
apt-get install -y --no-install-recommends nodejs; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# References:
|
# References:
|
||||||
# - docker: https://docs.docker.com/engine/install/debian/#install-from-a-package
|
# - docker: https://docs.docker.com/engine/install/debian/#install-from-a-package
|
||||||
|
# - node: https://github.com/nodesource/distributions#installation-instructions-deb
|
||||||
|
|
|
@ -8,5 +8,6 @@ Common docker image used for running application builds, CI pipelines, and deplo
|
||||||
- `curl`
|
- `curl`
|
||||||
- `git`
|
- `git`
|
||||||
- `kubectl`
|
- `kubectl`
|
||||||
|
- `node`
|
||||||
- `ssh`
|
- `ssh`
|
||||||
- `yq` - https://github.com/mikefarah/yq
|
- `yq` - https://github.com/mikefarah/yq
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue