refactor: shrink container build
All checks were successful
Build containers / changes (push) Successful in 3s
Build containers / base-image (push) Successful in 46s
Build containers / dependent-images (go) (push) Successful in 17s
Build containers / dependent-images (php) (push) Successful in 21s
Build containers / dependent-images (infra) (push) Successful in 56s
All checks were successful
Build containers / changes (push) Successful in 3s
Build containers / base-image (push) Successful in 46s
Build containers / dependent-images (go) (push) Successful in 17s
Build containers / dependent-images (php) (push) Successful in 21s
Build containers / dependent-images (infra) (push) Successful in 56s
This commit is contained in:
@@ -5,9 +5,10 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
|||||||
dnf update -y && \
|
dnf update -y && \
|
||||||
dnf copr enable -y gierth/tools-golang && \
|
dnf copr enable -y gierth/tools-golang && \
|
||||||
dnf copr enable -y agriffis/neovim-nightly && \
|
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-core fzf curl awk jq unzip which \
|
||||||
host-spawn dbus-launch \
|
host-spawn dbus-launch \
|
||||||
git npm neovim awk jq unzip lazygit lazydocker lazysql
|
npm neovim wl-copy gcc lazygit lazysql
|
||||||
|
|
||||||
COPY config/bin /usr/local/bin
|
COPY config/bin /usr/local/bin
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@ FROM job79/base:${TAG}
|
|||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
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
|
USER user
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ FROM job79/base:${TAG}
|
|||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
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 -sL https://talos.dev/install | sh && \
|
||||||
curl -s https://fluxcd.io/install.sh | bash
|
curl -s https://fluxcd.io/install.sh | bash
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ FROM job79/base:${TAG}
|
|||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
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
|
composer global require laravel/installer
|
||||||
|
|
||||||
USER user
|
USER user
|
||||||
|
|||||||
Reference in New Issue
Block a user