Andreas Fahrecker a6e4c61f28
Some checks failed
andreas-personal/jenkins-with-docker/pipeline/head There was a failure building this commit
changed groupadd to addgroup in alpine
2024-03-12 18:47:18 +01:00

13 lines
322 B
Docker

FROM jenkins/jenkins:alpine
USER root
RUN addgroup --gid 281 docker
RUN usermod -aG docker jenkins
RUN apk add --no-cache docker docker-compose
COPY --chown=jenkins:jenkins executors.groovy /usr/share/jenkins/ref/init.groovy.d/executors.groovy
USER jenkins
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow"