Skip to content

Commit 32994bf

Browse files
committed
build(dockerfile): add Dockerfile - including python3 and mkdocs
0 parents  commit 32994bf

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM jenkins/inbound-agent:alpine as jnlp
2+
3+
FROM jenkins/agent:latest-jdk11
4+
5+
ARG version
6+
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols" Vendor="Jenkins project" Version="$version"
7+
8+
ARG user=jenkins
9+
10+
USER root
11+
12+
COPY --from=jnlp /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-agent
13+
14+
RUN chmod +x /usr/local/bin/jenkins-agent && \
15+
ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave
16+
17+
RUN apt-get update && apt-get install -y \
18+
rsync \
19+
python3 \
20+
python3-pip \
21+
python3-venv
22+
23+
RUN pip3 install mkdocs
24+
25+
USER ${user}
26+
27+
ENTRYPOINT ["/usr/local/bin/jenkins-agent"]

0 commit comments

Comments
 (0)