From 5f12da7a1d62342f89f4186325baa941cf2cf966 Mon Sep 17 00:00:00 2001 From: rhtenhove Date: Tue, 28 Sep 2021 13:06:25 +0200 Subject: [PATCH] ci: alpine Docker image This would be a much more lightweight image, with the same tool. Furthermore, it will be a lot faster and easier to add extra packages such as `curl` (i.e. a fast and clean `apk add --no-cache curl` instead of a slow `apt-get update && apt-get install curl -y` which adds harder to remove cache. This does still need you to set up a pipeline to create `ghcr.io/tomwright/dasel:alpine`. --- docker/alpine.Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docker/alpine.Dockerfile diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile new file mode 100644 index 0000000..6e7b06d --- /dev/null +++ b/docker/alpine.Dockerfile @@ -0,0 +1,10 @@ +FROM alpine + +ARG daselpath=./dasel + +WORKDIR /root +COPY $daselpath /usr/local/bin/dasel +RUN chmod +x /usr/local/bin/dasel + +ENTRYPOINT ["/usr/local/bin/dasel"] +CMD []