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 . .