28 lines
963 B
Docker
28 lines
963 B
Docker
# 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" \
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
org.label-schema.license=MIT
|
|
|
|
# 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
|