From cefcb44095370c789252df1def20b7673544e3c6 Mon Sep 17 00:00:00 2001 From: amorozov Date: Mon, 3 Mar 2025 04:18:28 +0300 Subject: [PATCH] updated Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 33232a2..1b01378 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 "PATH=${PATH}" >> /root/.ssh/environment +RUN echo mkdir -p /root/.ssh/ && "PATH=${PATH}" >> /root/.ssh/environment COPY setup-sshd /usr/local/bin/setup-sshd RUN chmod a+x /usr/local/bin/setup-sshd