Skip to content

Commit

Permalink
feat: add Containerfile.toolbox (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
castrojo committed Apr 30, 2023
1 parent 1ee2065 commit 608bdbc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Containerfile.toolbox
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 608bdbc

Please sign in to comment.