Update submodule, add bake.hcl, only install needed deps

This commit is contained in:
Manuel 2023-04-02 21:36:54 +02:00
parent 42243e31fd
commit bdc5b614c0
Signed by: Manuel
GPG key ID: 4085037435E1F07A
3 changed files with 19 additions and 2 deletions

View file

@ -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

@ -1 +1 @@
Subproject commit d5e8ebd41e06edd8fa51658b77343a450088140c
Subproject commit 9cf3b33b0cb2906fe6af0a590e3268c5a1c06c5c

17
docker-bake.hcl Normal file
View file

@ -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}"]
}