Dockerfile 600 B

1234567891011121314151617181920212223242526
  1. FROM jenkins:latest
  2. MAINTAINER encrypt <encrypt@labr.xyz>
  3. USER root
  4. # Let's start with some basic stuff.
  5. RUN apt-get update -qq && apt-get install -qqy \
  6. apt-transport-https \
  7. ca-certificates \
  8. curl \
  9. lxc \
  10. iptables
  11. # Install Docker from Docker Inc. repositories.
  12. RUN curl -sSL https://get.docker.com/ubuntu/ | sh
  13. # Install the magic wrapper.
  14. ADD ./wrapdocker /usr/local/bin/wrapdocker
  15. RUN chmod +x /usr/local/bin/wrapdocker
  16. # Add jenkins user to docker group
  17. RUN gpasswd -a jenkins docker
  18. # Define additional metadata for our image.
  19. VOLUME /var/lib/docker
  20. CMD ["wrapdocker"]