We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 178b3ae commit 27f4881Copy full SHA for 27f4881
test/Dockerfile
@@ -0,0 +1,31 @@
1
+FROM registry.access.redhat.com/ubi8/ubi
2
+
3
+ENV USER_UID=1001 \
4
+ USER_NAME=openshift-python\
5
+ HOME=/opt/osrcp
6
7
+RUN yum install -y \
8
+ glibc-langpack-en \
9
+ git \
10
+ make \
11
+ python3 \
12
+ python3-devel \
13
+ python3-pip \
14
+ python3-setuptools \
15
+ && pip3 install --no-cache-dir --upgrade setuptools pip wheel \
16
+ && yum clean all
17
18
+COPY . /opt/osrcp
19
20
+WORKDIR /opt/osrcp
21
22
+RUN pip install -e .
23
24
+RUN echo "${USER_NAME}:x:${USER_UID}:0:${USER_NAME} user:${HOME}:/sbin/nologin" >> /etc/passwd \
25
+ && chown -R "${USER_UID}:0" "${HOME}" \
26
+ && chmod -R ug+rwX "${HOME}" \
27
+ && mkdir /go \
28
+ && chown -R "${USER_UID}:0" /go \
29
+ && chmod -R ug+rwX /go
30
31
+USER ${USER_UID}
0 commit comments