refactor: shrink container build
Some checks failed
Build containers / changes (push) Successful in 3s
Build containers / base-image (push) Successful in 1m10s
Build containers / dependent-images (go) (push) Successful in 31s
Build containers / dependent-images (infra) (push) Failing after 27s
Build containers / dependent-images (php) (push) Successful in 30s

This commit is contained in:
Job
2026-03-17 20:37:53 +01:00
parent 056ff220c5
commit 7c1a97f9df
4 changed files with 7 additions and 5 deletions

View File

@@ -5,9 +5,10 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf update -y && \
dnf copr enable -y gierth/tools-golang && \
dnf copr enable -y agriffis/neovim-nightly && \
dnf -y --setopt=keepcache=1 install bash-completion glibc-minimal-langpack \
dnf -y --setopt=keepcache=1 --setopt=install_weak_deps=False install \
bash-completion git fzf curl awk jq unzip \
host-spawn dbus-launch \
git npm neovim awk jq unzip lazygit lazydocker lazysql
npm neovim wl-copy lazygit lazydocker lazysql
COPY config/bin /usr/local/bin

View File

@@ -3,6 +3,6 @@ FROM job79/base:${TAG}
USER root
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf -y --setopt=keepcache=1 install go
dnf -y --setopt=keepcache=1 --setopt=install_weak_deps=False install go
USER user

View File

@@ -3,7 +3,8 @@ FROM job79/base:${TAG}
USER root
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf -y --setopt=keepcache=1 install kubectl k9s openssl age "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r ".assets[] | select(.name | test(\"sops-.*.$(arch).rpm\$\")) | .browser_download_url")" && \
dnf -y --setopt=keepcache=1 --setopt=install_weak_deps=False install \
kubectl k9s openssl age "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r ".assets[] | select(.name | test(\"sops-.*.$(arch).rpm\$\")) | .browser_download_url")" && \
curl -sL https://talos.dev/install | sh && \
curl -s https://fluxcd.io/install.sh | bash

View File

@@ -3,7 +3,7 @@ FROM job79/base:${TAG}
USER root
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf -y --setopt=keepcache=1 install php composer && \
dnf -y --setopt=keepcache=1 --setopt=install_weak_deps=False install php composer && \
composer global require laravel/installer
USER user