diff --git a/DockerfileAgent2404 b/DockerfileAgent2404 index 28d2bd8..44f7b69 100644 --- a/DockerfileAgent2404 +++ b/DockerfileAgent2404 @@ -1,6 +1,6 @@ FROM ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update && apt-get install -y openssh-server openjdk-21-jdk +RUN apt-get update && apt-get install -y git openssh-server openjdk-21-jdk RUN mkdir /var/run/sshd RUN useradd -m -d /home/jenkins -s /bin/bash jenkins && echo "jenkins:jenkins" | chpasswd diff --git a/DockerfileAgentAlpine b/DockerfileAgentAlpine index 50d954e..5e63a2f 100644 --- a/DockerfileAgentAlpine +++ b/DockerfileAgentAlpine @@ -1,5 +1,5 @@ FROM alpine:latest -RUN apk update && apk add --no-cache openssh openjdk21 bash +RUN apk update && apk add --no-cache git openssh openjdk21 bash RUN ssh-keygen -A RUN adduser -D -h /home/jenkins -s /bin/bash jenkins RUN echo "jenkins:jenkins" | chpasswd diff --git a/DockerfileAgentDebian b/DockerfileAgentDebian index bfb9882..603a8af 100644 --- a/DockerfileAgentDebian +++ b/DockerfileAgentDebian @@ -1,6 +1,6 @@ FROM debian:13.3-slim ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update && apt-get install -y openssh-server openjdk-21-jdk +RUN apt-get update && apt-get install -y git openssh-server openjdk-21-jdk RUN useradd -m -d /home/jenkins -s /bin/bash jenkins && echo "jenkins:jenkins" | chpasswd EXPOSE 22 CMD ["/usr/sbin/sshd","-D"] \ No newline at end of file