| 1 |
FROM registry.access.redhat.com/ubi8:8.5 |
| 2 |
|
| 3 |
ENV NAME=toolbox-container VERSION=8.5 |
| 4 |
LABEL com.github.containers.toolbox="true" \ |
| 5 |
com.redhat.component="$NAME" \ |
| 6 |
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \ |
| 7 |
name="$NAME" \ |
| 8 |
version="$VERSION" \ |
| 9 |
usage="This image is meant to be used with the toolbox command" \ |
| 10 |
summary="Base image for creating UBI toolbox containers" \ |
| 11 |
maintainer="Oliver GutiƩrrez <[email protected]>" |
| 12 |
|
| 13 |
COPY README.md / |
| 14 |
|
| 15 |
RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf |
| 16 |
RUN dnf -y swap coreutils-single coreutils-full |
| 17 |
|
| 18 |
COPY missing-docs / |
| 19 |
RUN dnf -y reinstall $(<missing-docs) |
| 20 |
RUN rm /missing-docs |
| 21 |
|
| 22 |
COPY extra-packages / |
| 23 |
RUN dnf -y install $(<extra-packages) |
| 24 |
RUN rm /extra-packages |
| 25 |
|
| 26 |
RUN dnf clean all |
| 27 |
|
| 28 |
CMD /bin/sh |