diff --git a/Dockerfile b/Dockerfile index ee38699..33232a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -121,6 +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 COPY setup-sshd /usr/local/bin/setup-sshd RUN chmod a+x /usr/local/bin/setup-sshd