summaryrefslogtreecommitdiff
path: root/examples/003/Dockerfile
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-10 20:43:08 -0600
committermo khan <mo.khan@gmail.com>2020-06-10 20:43:08 -0600
commit6f65e7fa18a406c5b233d7d692186b302d594971 (patch)
tree55b09e591e34c2f5c37f45af28332fff25e68339 /examples/003/Dockerfile
parentc5794d5b829ab12d09b535d8aaf2faad56cc6cf2 (diff)
build large image and small image
Diffstat (limited to 'examples/003/Dockerfile')
-rw-r--r--examples/003/Dockerfile8
1 files changed, 8 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']