FROM alpine:3.22 RUN apk add --no-cache borgbackup openssh COPY entrypoint.sh /entrypoint.sh RUN addgroup borg && \ adduser -D -h /srv -G borg borg && \ chmod +x /entrypoint.sh && \ sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config VOLUME /srv EXPOSE 22 ENTRYPOINT ["/entrypoint.sh"] CMD ["borg", "--help"]