| # debian.sh --arch 'amd64' out/ 'bookworm' '@1787529600' |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl tzdata && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c mkdir -p /data /storage && chmod 777 /data /storage # buildkit |
| COPY target/release/kv-files /usr/local/bin/kv-file # buildkit |
| RUN /bin/sh -c chmod +x /usr/local/bin/kv-file # buildkit |
| ENV KV_HOST=0.0.0.0 KV_PORT=8866 KV_DATA_DIR=/data KV_STORAGE_ROOTS=/storage RUST_LOG=kv_files=info,tower_http=info |
| VOLUME [/data /storage] |
| EXPOSE [8866/tcp] |
| HEALTHCHECK {Test:[CMD-SHELL curl -f http://localhost:8866/api/v1/auth/setup-status || exit 1] Interval:30s Timeout:5s StartPeriod:5s StartInterval:0s Retries:3} |
| CMD ["/usr/local/bin/kv-file"] |