Update jenkins for external docker use

This commit is contained in:
2026-01-07 15:18:26 +00:00
parent 66f27a2663
commit 3d12d7eb5f
2 changed files with 25 additions and 1 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM jenkins/jenkins:lts
USER root
# Docker dependencies
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
# Add Docker repo
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
# Install docker client
RUN apt-get update && apt-get install -y docker-ce-cli
USER jenkins