updated Dockerfile
All checks were successful
Gitea/docker-base-images/jenkins-ssh-agent-jdk17-dind/pipeline/head This commit looks good

This commit is contained in:
amorozov 2025-03-03 04:19:27 +03:00
parent cefcb44095
commit df3d2924d9

View File

@ -121,7 +121,7 @@ WORKDIR "${JENKINS_AGENT_HOME}"
# The file path has been created earlier in the file by `mkdir -p` and we also have configured sshd so that it will
# allow environment variables to be sourced (see `sed` command related to `PermitUserEnvironment`)
RUN echo "PATH=${PATH}" >> ${JENKINS_AGENT_HOME}/.ssh/environment
RUN echo mkdir -p /root/.ssh/ && "PATH=${PATH}" >> /root/.ssh/environment
RUN mkdir -p /root/.ssh/ && echo "PATH=${PATH}" >> /root/.ssh/environment
COPY setup-sshd /usr/local/bin/setup-sshd
RUN chmod a+x /usr/local/bin/setup-sshd