install docker on base image and add jenkins to docker group

This commit is contained in:
Michael Shaw 2023-03-08 11:30:36 -05:00
parent 82dd24686d
commit 9556dd54fe

View File

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