diff options
Diffstat (limited to 'examples/003')
| -rw-r--r-- | examples/003/Dockerfile | 8 | ||||
| -rw-r--r-- | examples/003/run.sh | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/examples/003/Dockerfile b/examples/003/Dockerfile new file mode 100644 index 0000000..35b83ea --- /dev/null +++ b/examples/003/Dockerfile @@ -0,0 +1,8 @@ +FROM debian:stable-slim +ENV PACKAGES git ruby zstd +RUN apt-get update -y --no-install-recommends $PACKAGES \ + && git clone https://github.com/spandx/cache.git /opt/db \ + && tar --use-compress-program zstd -cf /opt/db.tar.zst /opt/db \ + && rm -fr /opt/db +COPY run.sh /run.sh +CMD ['/run.sh'] diff --git a/examples/003/run.sh b/examples/003/run.sh new file mode 100644 index 0000000..db1f294 --- /dev/null +++ b/examples/003/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -ex + +tar -xf /opt/db.tar.zst + +cd /opt/db/.index +sh |
