diff options
Diffstat (limited to 'docker_build/Dockerfile')
| -rw-r--r-- | docker_build/Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker_build/Dockerfile b/docker_build/Dockerfile index 5df57d2..16f74d6 100644 --- a/docker_build/Dockerfile +++ b/docker_build/Dockerfile | |||
| @@ -19,8 +19,8 @@ RUN mkdir -p /var/run/sshd && \ | |||
| 19 | RUN mkdir -p /root/.ssh && \ | 19 | RUN mkdir -p /root/.ssh && \ |
| 20 | chmod 700 /root/.ssh && \ | 20 | chmod 700 /root/.ssh && \ |
| 21 | usermod -s /bin/bash root | 21 | usermod -s /bin/bash root |
| 22 | # Copy SSH public keys from ssh-keys directory into the image | 22 | # Copy SSH public keys from docker_build/ssh-keys directory into the image |
| 23 | COPY ssh-keys/*.pub /tmp/ssh-keys/ | 23 | COPY docker_build/ssh-keys/*.pub /tmp/ssh-keys/ |
| 24 | RUN cat /tmp/ssh-keys/*.pub > /root/.ssh/authorized_keys && \ | 24 | RUN cat /tmp/ssh-keys/*.pub > /root/.ssh/authorized_keys && \ |
| 25 | chmod 600 /root/.ssh/authorized_keys && \ | 25 | chmod 600 /root/.ssh/authorized_keys && \ |
| 26 | rm -rf /tmp/ssh-keys | 26 | rm -rf /tmp/ssh-keys |
