File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,6 @@ RUN dnf upgrade -y \
2828 && dnf clean all \
2929 && rm -rf /var/cache/yum
3030
31- RUN chmod 777 /opt \
32- && adduser --home-dir "${USER_HOME}" --uid "${USER_ID}" "${USER_NAME}"
33-
34- USER "${USER_NAME}"
35-
36- ENV HOME="${USER_HOME}"
37-
38- WORKDIR /opt
39-
4031# @TL FIXME: --break-system-packages not supported until Python 3.11.
4132RUN pip3 install --no-cache-dir --upgrade \
4233 cfn-policy-validator==0.0.36 \
@@ -47,6 +38,15 @@ RUN pip3 install --no-cache-dir --upgrade \
4738 exit 1 ; \
4839 fi
4940
41+ RUN chmod 777 /opt \
42+ && adduser --home-dir "${USER_HOME}" --uid "${USER_ID}" "${USER_NAME}"
43+
44+ USER "${USER_NAME}"
45+
46+ ENV HOME="${USER_HOME}"
47+
48+ WORKDIR /opt
49+
5050CMD ["/bin/bash" ]
5151
5252ENTRYPOINT []
You can’t perform that action at this time.
0 commit comments