From 35497114b415117c1ffc6c070cce0ab1fdddb5a7 Mon Sep 17 00:00:00 2001 From: Valentin Silyutin Date: Wed, 3 Dec 2025 01:03:18 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B2=D0=BE=D0=B9=20Dockerfile=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BA=D0=B0=D0=B6=D0=B4=D0=BE=D0=B9=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D1=81=D0=B8=D0=B8=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B7?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 18.17/1.0.1/Dockerfile | 3 +++ 18.17/1.0.2/Dockerfile | 3 +++ 20.12/1.0.0/Dockerfile | 3 +++ Dockerfile => 22.20/1.0.0/Dockerfile | 0 README.md | 16 +++++++++++----- 5 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 18.17/1.0.1/Dockerfile create mode 100644 18.17/1.0.2/Dockerfile create mode 100644 20.12/1.0.0/Dockerfile rename Dockerfile => 22.20/1.0.0/Dockerfile (100%) diff --git a/18.17/1.0.1/Dockerfile b/18.17/1.0.1/Dockerfile new file mode 100644 index 0000000..2b0002a --- /dev/null +++ b/18.17/1.0.1/Dockerfile @@ -0,0 +1,3 @@ +FROM node:18.17-alpine3.18 +RUN apk add --no-cache git openjdk17-jre-headless +CMD ["/bin/sh"] diff --git a/18.17/1.0.2/Dockerfile b/18.17/1.0.2/Dockerfile new file mode 100644 index 0000000..c09facb --- /dev/null +++ b/18.17/1.0.2/Dockerfile @@ -0,0 +1,3 @@ +FROM node:18.17-alpine3.18 +RUN apk add --no-cache git openjdk17-jre-headless openssh +CMD ["/bin/sh"] diff --git a/20.12/1.0.0/Dockerfile b/20.12/1.0.0/Dockerfile new file mode 100644 index 0000000..14f6a96 --- /dev/null +++ b/20.12/1.0.0/Dockerfile @@ -0,0 +1,3 @@ +FROM node:20.12-alpine3.19 +RUN apk add --no-cache git openjdk17-jre-headless openssh +CMD ["/bin/sh"] diff --git a/Dockerfile b/22.20/1.0.0/Dockerfile similarity index 100% rename from Dockerfile rename to 22.20/1.0.0/Dockerfile diff --git a/README.md b/README.md index bca0159..34d9391 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ -``` -docker build -t gitea.optiweb.ru/public/node:18.17-1.0.0 -t gitea.optiweb.ru/public/node:latest . -docker push gitea.optiweb.ru/public/node:18.17-1.0.0 -docker push gitea.optiweb.ru/public/node:latest -``` \ No newline at end of file +## Сборка нового образа + +1. Создать папку с номером версии Node.js, а в ней - папку с номером версии образа +2. Добавить Dockerfile +3. Собрать образ и отправить его в репозиторий: + ``` + docker build -t gitea.optiweb.ru/public/node:18.17-1.0.0 -t gitea.optiweb.ru/public/node:latest . + docker push gitea.optiweb.ru/public/node:18.17-1.0.0 + docker push gitea.optiweb.ru/public/node:latest + ``` +4. Отправить коммит с новым Dockerfile в репозиторий (`git commit -m "18.17-1.0.0"`)