Update submodule, add bake.hcl, only install needed deps
This commit is contained in:
parent
42243e31fd
commit
bdc5b614c0
3 changed files with 19 additions and 2 deletions
|
@ -4,7 +4,7 @@ COPY ./cage-vi/ /tmp/cage/
|
||||||
|
|
||||||
RUN pacman -Syu --noconfirm base-devel \
|
RUN pacman -Syu --noconfirm base-devel \
|
||||||
&& chown -R nobody: /tmp/cage/ \
|
&& 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"
|
&& runuser -u nobody -- sh -c "cd /tmp/cage/ && makepkg -c --noconfirm"
|
||||||
|
|
||||||
FROM binhex/arch-base:latest
|
FROM binhex/arch-base:latest
|
||||||
|
|
2
cage-vi
2
cage-vi
|
@ -1 +1 @@
|
||||||
Subproject commit d5e8ebd41e06edd8fa51658b77343a450088140c
|
Subproject commit 9cf3b33b0cb2906fe6af0a590e3268c5a1c06c5c
|
17
docker-bake.hcl
Normal file
17
docker-bake.hcl
Normal 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}"]
|
||||||
|
}
|
Loading…
Reference in a new issue