Creation dcoker agents

This commit is contained in:
2025-12-18 13:27:45 +01:00
parent 93c5d78386
commit 2165d3ee84
3 changed files with 21 additions and 0 deletions

7
DockerfileAgentAlpine Normal file
View File

@@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk update && apk add --no-cache openssh openjdk21 bash
RUN ssh-keygen -A
RUN adduser -D -h /home/jenkins -s /bin/bash jenkins
RUN echo "jenkins:jenkins" | chpasswd
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]