From 24ab6cc7ad1b045a753db4abb53c629945e273bb Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 15 Jul 2024 12:16:26 +0200 Subject: [PATCH] refs #7721 image-push renamed to image-build, node image added --- README.md | 2 +- image-push.sh => image-build.sh | 0 node/Dockerfile | 13 +++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) rename image-push.sh => image-build.sh (100%) create mode 100644 node/Dockerfile diff --git a/README.md b/README.md index 46ab130..ab6a614 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Dockerfile and compose files used as basis for Verdnatura service deployment. Some scripts are provided to speed up the most common actions: -* *image-push.sh*: Build, tag and push an own image. +* *image-build.sh*: Build, tag and push an own image. * *image-cache.sh*: Cache docker hub image in the local registry. Use *image.conf* for local registry and repository configuration. diff --git a/image-push.sh b/image-build.sh similarity index 100% rename from image-push.sh rename to image-build.sh diff --git a/node/Dockerfile b/node/Dockerfile new file mode 100644 index 0000000..d520086 --- /dev/null +++ b/node/Dockerfile @@ -0,0 +1,13 @@ +FROM debian:12.6-slim + +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + curl \ + ca-certificates \ + gnupg2 \ + && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ + && apt-get install -y --no-install-recommends nodejs \ + && npm install -g npm \ + && rm -rf /var/lib/apt/lists/*