mirror of
https://github.com/kopia/kopia.git
synced 2026-01-24 14:28:06 -05:00
* Dockerfile: specified reasonable defaults options for containerized kopia * addressed pr comments, switched to gcr.io/distroless/static:nonroot distroless has no executable code, so this requires KOPIA_PASSWORD to always be provided via env, b/c distroless does not have /bin/stty to disable TTY echo (we should not require that, BTW) * site: added docker image documentation
19 lines
537 B
Docker
19 lines
537 B
Docker
FROM gcr.io/distroless/static:nonroot
|
|
ARG TARGETARCH
|
|
|
|
# allow users to mount /app/config, /app/logs and /app/cache respectively
|
|
ENV KOPIA_CONFIG_PATH=/app/config/repository.config
|
|
ENV KOPIA_LOG_DIR=/app/logs
|
|
ENV KOPIA_CACHE_DIRECTORY=/app/cache
|
|
|
|
# this requires repository password to be passed via KOPIA_PASSWORD environment.
|
|
ENV KOPIA_PERSIST_CREDENTIALS_ON_CONNECT=false
|
|
ENV KOPIA_CHECK_FOR_UPDATES=false
|
|
|
|
# this creates directories writable by the current user
|
|
WORKDIR /app
|
|
|
|
COPY bin-${TARGETARCH}/kopia .
|
|
|
|
ENTRYPOINT ["/app/kopia"]
|