diff --git a/Dockerfile b/Dockerfile index e36e0b5..f521042 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM kopia/kopia ADD entrypoint.sh / -ENTRYPOINT [ "/entrypoint.sh" ] +ENTRYPOINT [ "sh /entrypoint.sh" ] diff --git a/entrypoint.sh b/entrypoint.sh index 9449a24..4e98ae0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,10 @@ #!/bin/sh kopia --version + +kopia repository connect filesystem \ + --path /repository \ + --override-hostname ${KOPIA_HOSTNAME} \ + --override-username ${KOPIA_USERNAME} + sleep infinity