From dc021f68026dcc4c0d2085fe3b2b73d797147cec Mon Sep 17 00:00:00 2001 From: dl Date: Wed, 4 Feb 2026 12:43:05 +0500 Subject: [PATCH] Docker automate in Jenkinsfile (fix 6) --- Jenkinsfile | 5 ++++- dockerfile | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cfd8cc5..a560719 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,8 @@ pipeline { - agent { dockerfile true } + agent { + image "python:3.11-slim-bookworm" + args "-v /var/run/docker.sock:/var/run/docker.sock" + } environment { REGISTRY_URL = "https://proxy.docker.dataekb.ru/harbor/projects/3/repositories" diff --git a/dockerfile b/dockerfile index 710fe40..693c453 100644 --- a/dockerfile +++ b/dockerfile @@ -1,10 +1,9 @@ -FROM docker:dind -# FROM python:3.11-slim-bookworm +FROM python:3.11-slim-bookworm WORKDIR /bot/open_sesam COPY requirements.txt . -RUN apk add --no-cache docker-compose python3 py3-pip && pip install --upgrade pip && pip install -r requirements.txt +RUN pip install --upgrade pip && pip install -r requirements.txt COPY . .