contrib/packaging/docker/rhel8
author Mathias De Mare <mathias.de_mare@nokia.com>
Wed, 08 Jun 2022 14:03:23 +0200
branchstable
changeset 49278 234aaf0184f3
parent 48773 6cfa30681a1d
permissions -rw-r--r--
docker: avoid /tmp write access issues by fixing permissions

FROM rockylinux/rockylinux:8

RUN groupadd -g %GID% build && \
    useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build

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

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

# For rust extensions
RUN yum install -y cargo

# avoid incorrect docker image permissions on /tmp preventing writes by non-root users
RUN chmod 1777 /tmp