s
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
FROM jenkins/jenkins:latest
|
||||
|
||||
FROM jenkins/jenkins:lts
|
||||
USER root
|
||||
|
||||
# Instalăm clientul de Docker în interiorul imaginii Jenkins
|
||||
RUN apt-get update && apt-get install -y lsb-release
|
||||
RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \
|
||||
https://download.docker.com/linux/debian/gpg
|
||||
RUN echo "deb [arch=$(dpkg --print-architecture) \
|
||||
signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \
|
||||
https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
|
||||
RUN apt-get update && apt-get install -y docker-ce-cli
|
||||
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz | tar xvz && \
|
||||
mv docker/docker /usr/bin/docker && \
|
||||
rm -rf docker
|
||||
|
||||
RUN groupadd -g 999 docker || true && \
|
||||
usermod -aG docker jenkins
|
||||
|
||||
USER jenkins
|
||||
Reference in New Issue
Block a user