Added Dockerfile and .gitignore
This commit is contained in:
parent
8b22999b5f
commit
e0677a4c36
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.idea/
|
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
FROM jenkins/jenkins
|
||||||
|
|
||||||
|
USER root
|
||||||
|
RUN groupadd -g 281 docker
|
||||||
|
RUN usermod -aG docker jenkins
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y\
|
||||||
|
ca-certificates \
|
||||||
|
curl \
|
||||||
|
gnupg \
|
||||||
|
|
||||||
|
RUN mkdir -m 0755 -p /etc/apt/keyrings
|
||||||
|
RUN 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 \
|
||||||
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
||||||
|
tee /etc/apt/sources.list.d/docker.list > /dev/null \
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||||
|
|
||||||
|
USER jenkins
|
Loading…
x
Reference in New Issue
Block a user