install docker on base image and add jenkins to docker group
This commit is contained in:
parent
82dd24686d
commit
9556dd54fe
@ -2,7 +2,7 @@ FROM ubuntu:22.04
|
|||||||
|
|
||||||
USER root
|
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
|
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 groupadd -r -g 116 jenkins
|
||||||
|
|
||||||
RUN useradd -r -u 111 -g 116 -d /var/lib/jenkins -M -N jenkins
|
RUN useradd -r -u 111 -g 116 -d /var/lib/jenkins -M -N jenkins
|
||||||
|
|
||||||
|
RUN usermod -aG docker jenkins
|
||||||
|
Loading…
Reference in New Issue
Block a user