fedora-minimal/Containerfile

28 lines
963 B
Plaintext
Raw Normal View History

2022-04-20 22:16:47 +02:00
# syntax=docker/dockerfile:1.3
FROM registry.fedoraproject.org/fedora-minimal:36
ARG BUILD_DATE
ARG VCS_REF
LABEL description="Container image based on fedora-minimal, hourly updated, serving as a base image for other projects"
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://git.dotya.ml/wanderer-containers/fedora-minimal.git" \
2022-04-20 22:16:47 +02:00
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.license=MIT
2022-04-20 22:16:47 +02:00
# DL3041 warning: Specify version with `dnf install -y <package>-<version>`.
# hadolint ignore=DL3041
RUN microdnf --refresh upgrade -y && \
microdnf install -y --nodocs --setopt install_weak_deps=0 \
findutils \
&& microdnf clean all -y; \
\
rm -rf /usr/share/zoneinfo/*; rm -rf /usr/include/*; \
find /. -name "*~" -type f -delete > /dev/null 2>&1; \
find /usr/share/terminfo/. -type f -delete \
! -name "*xterm*" ! -name "*screen*" ! -name "*screen*"
WORKDIR /
# vim: ft=dockerfile