From 6aeffc99cc6701bfe3da8f48877e395107d8c513 Mon Sep 17 00:00:00 2001 From: abdfnx Date: Thu, 5 May 2022 22:55:34 +0300 Subject: [PATCH] update secman cli docker image dockerfile --- docker/cli/Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker/cli/Dockerfile b/docker/cli/Dockerfile index 493f998d..9c8b0fe2 100644 --- a/docker/cli/Dockerfile +++ b/docker/cli/Dockerfile @@ -8,7 +8,17 @@ RUN apt-get update -y && apt-get upgrade -y RUN apt-get install -y npm nodejs RUN apt-get install -y curl sudo wget unzip -RUN curl -sL https://u.secman.dev | bash +### nodejs & npm ### +RUN curl -sL https://deb.nodesource.com/setup_17.x -o nodesource_setup.sh && \ + bash nodesource_setup.sh && \ + apt-get nodejs build-essential -y && \ + rm -rf nodesource_setup.sh && \ + apt-get update +RUN npm i -g npm@latest + +RUN npm i -g secman +RUN npm i -g @secman/scc + RUN secman init ENTRYPOINT ["secman"]