##// END OF EJS Templates
docker: avoid /tmp write access issues by fixing permissions
Mathias De Mare -
r50173:234aaf01 stable
parent child Browse files
Show More
@@ -1,18 +1,21
1 FROM rockylinux/rockylinux:8
1 FROM rockylinux/rockylinux:8
2
2
3 RUN groupadd -g %GID% build && \
3 RUN groupadd -g %GID% build && \
4 useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build
4 useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build
5
5
6 RUN yum install -y \
6 RUN yum install -y \
7 gcc \
7 gcc \
8 gettext \
8 gettext \
9 make \
9 make \
10 python3-devel \
10 python3-devel \
11 python3-docutils \
11 python3-docutils \
12 rpm-build
12 rpm-build
13
13
14 # For creating repo meta data
14 # For creating repo meta data
15 RUN yum install -y createrepo
15 RUN yum install -y createrepo
16
16
17 # For rust extensions
17 # For rust extensions
18 RUN yum install -y cargo
18 RUN yum install -y cargo
19
20 # avoid incorrect docker image permissions on /tmp preventing writes by non-root users
21 RUN chmod 1777 /tmp
General Comments 0
You need to be logged in to leave comments. Login now