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

8
DockerfileAgent2404 Normal file
View File

@@ -0,0 +1,8 @@
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y openssh-server openjdk-21-jdk
RUN mkdir /var/run/sshd
RUN useradd -m -d /home/jenkins -s /bin/bash jenkins && echo "jenkins:jenkins" | chpasswd
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]