Skip to content

Commit

Permalink
allow setting multiple public ssh keys
Browse files Browse the repository at this point in the history
  • Loading branch information
broizter committed Mar 4, 2024
1 parent 68486b1 commit b356e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/

EXPOSE 22

CMD ["/bin/bash", "-c", "echo $SSH_PUBLIC_KEY > /root/.ssh/authorized_keys; /usr/sbin/sshd -D"]
CMD ["/bin/bash", "-c", "echo \"$${SSH_PUBLIC_KEY}\" > /root/.ssh/authorized_keys; /usr/sbin/sshd -D"]

0 comments on commit b356e20

Please sign in to comment.