From bdc5b614c01dc472c32cd7b9040194b8288bde35 Mon Sep 17 00:00:00 2001 From: Manuel Date: Sun, 2 Apr 2023 21:36:54 +0200 Subject: [PATCH] Update submodule, add bake.hcl, only install needed deps --- Dockerfile | 2 +- cage-vi | 2 +- docker-bake.hcl | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 docker-bake.hcl diff --git a/Dockerfile b/Dockerfile index 224ca55..43b8b08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ COPY ./cage-vi/ /tmp/cage/ RUN pacman -Syu --noconfirm base-devel \ && chown -R nobody: /tmp/cage/ \ - && source /tmp/cage/PKGBUILD && pacman -S --noconfirm ${depends[@]} ${makedepends[@]} \ + && source /tmp/cage/PKGBUILD && pacman -S --needed ${depends[@]} ${makedepends[@]} --noconfirm \ && runuser -u nobody -- sh -c "cd /tmp/cage/ && makepkg -c --noconfirm" FROM binhex/arch-base:latest diff --git a/cage-vi b/cage-vi index d5e8ebd..9cf3b33 160000 --- a/cage-vi +++ b/cage-vi @@ -1 +1 @@ -Subproject commit d5e8ebd41e06edd8fa51658b77343a450088140c +Subproject commit 9cf3b33b0cb2906fe6af0a590e3268c5a1c06c5c diff --git a/docker-bake.hcl b/docker-bake.hcl new file mode 100644 index 0000000..4c10ea7 --- /dev/null +++ b/docker-bake.hcl @@ -0,0 +1,17 @@ +variable "REG" { + default = "git.snrd.eu" +} +variable "REPO" { + default = "sunred/cagevnc" +} +variable "TAG" { + default = "latest" +} + +group "default" { + targets = ["production"] +} +target "production" { + output = ["type=docker"] + tags = ["${REG}/${REPO}:latest", "${REG}/${REPO}:${TAG}"] +}