mirror of
https://github.com/LamGC/jenkins-agent-with-docker.git
synced 2025-04-29 22:27:31 +00:00
初步测试了一下,构建没问题。
This commit is contained in:
parent
05287b92c6
commit
3c7df434f9
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
ARG BASE_TAG=latest
|
||||
|
||||
FROM jenkins/inbound-agent:${BASE_TAG}
|
||||
|
||||
USER root
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ca-certificates \
|
||||
curl \
|
||||
gnupg \
|
||||
lsb-release && \
|
||||
mkdir -m 0755 -p /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
RUN apt-get update && apt-get install -y docker-ce-cli docker-buildx-plugin docker-compose-plugin
|
||||
|
||||
USER jenkins
|
||||
|
Loading…
Reference in New Issue
Block a user