feat: ssh known_hosts
This commit is contained in:
parent
a77a874d8c
commit
4b8bcac14e
2 changed files with 9 additions and 0 deletions
|
|
@ -4,4 +4,9 @@ RUN apt-get update \
|
|||
borgbackup \
|
||||
openssh-client \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN mkdir -pm0700 "$HOME/.ssh/" \
|
||||
&& touch "$HOME/.ssh/known_hosts" \
|
||||
&& chmod 0600 "$HOME/.ssh/known_hosts"
|
||||
COPY entrypoint.sh /usr/local/bin/
|
||||
ENTRYPOINT "entrypoint.sh"
|
||||
CMD ["borg"]
|
||||
|
|
|
|||
4
entrypoint.sh
Executable file
4
entrypoint.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
echo "$SSH_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
|
||||
exec "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue