FROM alpine:latest # Install BorgBackup and OpenSSH client RUN apk update && apk add --no-cache \ borgbackup \ openssh \ bash \ tzdata COPY ./docker/app /app RUN chmod +x /app/scripts -R RUN ln -s /app/scripts/loadenv /usr/local/bin/loadenv RUN ln -s /app/scripts/remote-connect /usr/local/bin/remote-connect RUN ln -s /app/scripts/remote-connect /usr/local/bin/remote-get-folder-size #RUN addgroup -g 1001 -S borg && adduser -u 1001 -S borg -G borg #USER borg #WORKDIR /app RUN echo "source /usr/local/bin/loadenv" > /root/.bash_profile RUN echo "source /usr/local/bin/loadenv" > /root/.bashrc ENTRYPOINT ["bash" , "-c", "borg $0"] CMD ["--help"]