diff --git a/Containerfile.toolbox b/Containerfile.toolbox new file mode 100644 index 00000000000..ec3e2968598 --- /dev/null +++ b/Containerfile.toolbox @@ -0,0 +1,23 @@ +FROM quay.io/toolbx-images/ubuntu-toolbox:22.04 +# From https://github.com/toolbx-images/images/tree/main/ubuntu/22.04 + +LABEL com.github.containers.toolbox="true" \ + usage="This image is meant to be used with the toolbox or distrobox command" \ + summary="A cloud-native terminal experience" \ + maintainer="jorge.castro@gmail.com" + +RUN sed -Ei '/apt-get (update|upgrade)/s/^/#/' /usr/local/sbin/unminimize && \ + apt-get update && \ + yes | /usr/local/sbin/unminimize && \ + DEBIAN_FRONTEND=noninteractive apt-get -y install \ + $(cat extra-packages | xargs) && \ + rm -rd /var/lib/apt/lists/* + +RUN rm /toolbox-packages + +RUN ln -fs /bin/sh /usr/bin/sh && \ + ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \ + ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \ + ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman && \ + ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree && \ + ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update