jenkins/Dockerfile
Knut Ahlers 65f6471028
Improve jenkins docker image
- Move installation code to build.sh
- Add Jenkins to `docker` group to enable access to docker.sock
- Fix installing Docker for wrong Debian version
  - From now on use automated detection of Debian version
- Install fewer packages by now installing recommends
- Do a proper cleanup of helper packages and apt lists
- Use sudoers.d instead of appending to sudoers

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-04-06 14:07:02 +02:00

7 lines
120 B
Docker

FROM jenkins/jenkins:2.107.1
USER root
COPY build.sh /usr/local/bin/build.sh
RUN /usr/local/bin/build.sh
USER jenkins