e0cd693893
This is the full definition of the UBI-based toolbox image published for RHEL 8 >= 8.5 [1] at registry.access.redhat.com/ubi8/toolbox:8.7 and such. Note that the Dockerfile used to build this image was already available to the public [2], but didn't include all the files necessary to build it. The FROM line has been changed to registry.access.redhat.com/ubi8:8.7 and such so that it can be built outside Red Hat's build system and always points to the desired RHEL version. [1] https://catalog.redhat.com/software/containers/ubi8/toolbox/611bd665bd674341b5c5ed46 [2] https://catalog.redhat.com/software/containers/ubi8/toolbox/611bd665bd674341b5c5ed46?container-tabs=dockerfile https://github.com/containers/toolbox/pull/1232
28 lines
828 B
Docker
28 lines
828 B
Docker
FROM registry.access.redhat.com/ubi8:8.6
|
|
|
|
ENV NAME=toolbox-container VERSION=8.6
|
|
LABEL com.github.containers.toolbox="true" \
|
|
com.redhat.component="$NAME" \
|
|
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \
|
|
name="$NAME" \
|
|
version="$VERSION" \
|
|
usage="This image is meant to be used with the toolbox command" \
|
|
summary="Base image for creating UBI toolbox containers" \
|
|
maintainer="Oliver Gutiérrez <ogutierrez@redhat.com>"
|
|
|
|
COPY README.md /
|
|
|
|
RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf
|
|
RUN dnf -y swap coreutils-single coreutils-full
|
|
|
|
COPY missing-docs /
|
|
RUN dnf -y reinstall $(<missing-docs)
|
|
RUN rm /missing-docs
|
|
|
|
COPY extra-packages /
|
|
RUN dnf -y install $(<extra-packages)
|
|
RUN rm /extra-packages
|
|
|
|
RUN dnf clean all
|
|
|
|
CMD /bin/sh
|