9506173f88
Note that there can be only one ARG per line. Otherwise, the build may fail with some build systems. eg., Fedora's [1], which uses Docker, not Podman. Only the images for currently maintained Fedoras (ie., 36, 37, 38 & 39) were updated. [1] https://koji.fedoraproject.org/koji/taskinfo?taskID=98150241 https://github.com/containers/toolbox/issues/188
44 lines
1.1 KiB
Docker
44 lines
1.1 KiB
Docker
FROM registry.fedoraproject.org/fedora:36
|
|
|
|
ARG NAME=fedora-toolbox
|
|
ARG VERSION=36
|
|
LABEL com.github.containers.toolbox="true" \
|
|
com.redhat.component="$NAME" \
|
|
name="$NAME" \
|
|
version="$VERSION" \
|
|
usage="This image is meant to be used with the toolbox command" \
|
|
summary="Base image for creating Fedora toolbox containers" \
|
|
maintainer="Debarshi Ray <rishi@fedoraproject.org>"
|
|
|
|
COPY README.md /
|
|
|
|
RUN rm /etc/rpm/macros.image-language-conf
|
|
RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf
|
|
|
|
RUN dnf -y upgrade
|
|
RUN dnf -y swap coreutils-single coreutils-full
|
|
RUN dnf -y swap glibc-minimal-langpack glibc-all-langpacks
|
|
|
|
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
|
|
|
|
COPY ensure-files /
|
|
RUN ret_val=0; \
|
|
while read file; do \
|
|
if ! compgen -G "$file" >/dev/null; then \
|
|
echo "$file: No such file or directory" >&2; \
|
|
ret_val=1; \
|
|
break; \
|
|
fi; \
|
|
done <ensure-files; \
|
|
if [ "$ret_val" -ne 0 ]; then \
|
|
false; \
|
|
fi
|
|
RUN rm /ensure-files
|
|
|
|
RUN dnf clean all
|