| 1 |
FROM rockylinux/rockylinux:8 |
| 2 |
|
| 3 |
RUN groupadd -g %GID% build && \ |
| 4 |
useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build |
| 5 |
|
| 6 |
RUN yum install -y \ |
| 7 |
bzip2-devel \ |
| 8 |
gcc \ |
| 9 |
gettext \ |
| 10 |
libffi-devel \ |
| 11 |
make \ |
| 12 |
ncurses-devel \ |
| 13 |
openssl-devel \ |
| 14 |
python3-devel \ |
| 15 |
python3-docutils \ |
| 16 |
readline-devel \ |
| 17 |
rpm-build \ |
| 18 |
sqlite-devel \ |
| 19 |
zlib-devel |
| 20 |
|
| 21 |
# For creating repo meta data |
| 22 |
RUN yum install -y createrepo |
| 23 |
|
| 24 |
# For rust extensions |
| 25 |
RUN yum install -y cargo |
| 26 |
|
| 27 |
# avoid incorrect docker image permissions on /tmp preventing writes by non-root users |
| 28 |
RUN chmod 1777 /tmp |