diff --git a/Dockerfile b/Dockerfile index 370e238..08135c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,9 @@ RUN apt-get update && bash -xe ./01*.sh && rm -rf * && rm -rf /var/lib/apt/lists COPY scripts/02*.sh . RUN apt-get update && bash -xe ./02*.sh && rm -rf * && rm -rf /var/lib/apt/lists/* +COPY scripts/03*.sh . +RUN apt-get update && bash -xe ./03*.sh && rm -rf * && rm -rf /var/lib/apt/lists/* + USER root ENV HOME=/root WORKDIR /github/workspace diff --git a/README.md b/README.md index 77b7bee..7ac22bd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # join-ci +[![Status](https://github.com/joinframework/join-ci/actions/workflows/cd.yml/badge.svg?branch=main)](https://github.com/joinframework/join-ci/actions?query=workflow%3Acd+branch%3Amain) +[![GitHub Releases](https://img.shields.io/github/release/joinframework/join-ci.svg)](https://github.com/joinframework/join-ci/releases/latest) [![GitHub License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/joinframework/join-ci/blob/main/LICENSE) Docker image for join framework continuous integration. diff --git a/scripts/03_install_nodejs.sh b/scripts/03_install_nodejs.sh new file mode 100644 index 0000000..cef1121 --- /dev/null +++ b/scripts/03_install_nodejs.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +NODE_MAJOR=24 + +curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \ + | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + +echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] \ + https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" \ + > /etc/apt/sources.list.d/nodesource.list + +apt-get update && apt-get -qq install nodejs