17 lines
515 B
Docker
17 lines
515 B
Docker
FROM jenkins/inbound-agent:latest
|
|
|
|
USER root
|
|
|
|
# Install Docker CLI
|
|
RUN apt-get update \
|
|
&& apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common \
|
|
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
|
|
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
|
|
&& apt-get update \
|
|
&& apt-get install -y docker-ce-cli
|
|
|
|
USER jenkins
|
|
|
|
ENTRYPOINT ["/usr/local/bin/jenkins-agent"]
|
|
|