contrib/packaging/docker/fedora.template
author Mads Kiilerich <mads@kiilerich.com>
Fri, 01 Nov 2019 15:29:14 +0100
branchstable
changeset 43359 e66a3bfcb19b
parent 43358 contrib/packaging/docker/fedora29@518655314fc5
permissions -rw-r--r--
packaging: make dockerrpm fedora target more generic Fedora moves fast in version numbers, and often with Mercurial packaging being backwards compatible. Thus, only aim for providing built-in support for latest Fedora version, and make it easy to update. With this refactoring, 'dockerrpm fedora31' also works. 'dockerrpm fedora' will use the 'fedora:latest' Docker image.

FROM fedora:%OS_RELEASE%

RUN groupadd -g 1000 build && \
    useradd -u 1000 -g 1000 -s /bin/bash -d /build -m build

RUN dnf install -y \
	gcc \
	gettext \
	make \
	python3-devel \
	python3-docutils \
	rpm-build

# For creating repo meta data
RUN dnf install -y createrepo