From 86373e7c87aeca9fb0d8889a12cfe09c0ffd1df9 Mon Sep 17 00:00:00 2001 From: Ivan Gabaldon Date: Sat, 17 May 2025 18:21:04 +0200 Subject: [mod] container: build custom base images (#4799) Instead of using Wolfi base images from cgr.dev and making that mess on the Dockerfile, why don't we build the base images ourselves from Wolfi repos with apko? The intention of this is to simplify the main Dockerfile and avoid having to patch the base image every time, it also simplifies some steps like image ownership management and provides extremely fast builds. --- container/base-builder.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 container/base-builder.yml (limited to 'container/base-builder.yml') diff --git a/container/base-builder.yml b/container/base-builder.yml new file mode 100644 index 000000000..ad8dd1355 --- /dev/null +++ b/container/base-builder.yml @@ -0,0 +1,27 @@ +contents: + keyring: + - https://packages.wolfi.dev/os/wolfi-signing.rsa.pub + repositories: + - https://packages.wolfi.dev/os + packages: + - wolfi-baselayout + - ca-certificates-bundle + - busybox + - build-base + - python-3.13-dev + - py3-pip + - brotli + +entrypoint: + command: /bin/sh -l + +work-dir: /usr/local/searxng/ + +environment: + PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt + HISTFILE: /dev/null + +archs: + - x86_64 + - aarch64 -- cgit v1.2.3