13 lines
376 B
Docker
13 lines
376 B
Docker
FROM docker.io/debian:12-slim
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
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"]
|