From 9556dd54fea162b7385df4cab321b3a9ce65c60c Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Wed, 8 Mar 2023 11:30:36 -0500 Subject: [PATCH] install docker on base image and add jenkins to docker group --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 86ea9c3..6c6094d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:22.04 USER root -RUN apt-get update -y && apt-get install -y --no-install-recommends make ca-certificates openssl gcc build-essential musl-dev git docker-compose +RUN apt-get update -y && apt-get install -y --no-install-recommends make ca-certificates openssl gcc build-essential musl-dev git docker-compose docker COPY files/go1.18.6.linux-amd64.tar.gz go1.18.6.linux-amd64.tar.gz @@ -23,3 +23,5 @@ ENV PATH $PATH:/usr/local/go/bin RUN groupadd -r -g 116 jenkins RUN useradd -r -u 111 -g 116 -d /var/lib/jenkins -M -N jenkins + +RUN usermod -aG docker jenkins