Skip to content

Commit 2c18a50

Browse files
Merge pull request #986 from jiridanek/jd_fix_perms
RHOAIENG-21691: mitigate undesirable `/opt/app-root` ownership and permissions change caused by a Dockerfile `COPY`
2 parents d5f7f83 + b41802d commit 2c18a50

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

codeserver/ubi9-python-3.11/Dockerfile.cpu

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ RUN yum install -y https://download.fedoraproject.org/pub/epel/epel-release-late
8181
COPY --chown=1001:0 ${CODESERVER_SOURCE_CODE}/supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
8282

8383
# Copy extra files to the image.
84-
COPY ${CODESERVER_SOURCE_CODE}/nginx/root/ /
84+
COPY --chown=1001:0 ${CODESERVER_SOURCE_CODE}/nginx/root/ /
8585

8686
# Changing ownership and user rights to support following use-cases:
8787
# 1) running container on OpenShift, whose default security model

rstudio/c9s-python-3.11/Dockerfile.cpu

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ RUN yum -y module enable nginx:$NGINX_VERSION && \
115115
COPY --chown=1001:0 ${RSTUDIO_SOURCE_CODE}/supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
116116

117117
# Copy extra files to the image.
118-
COPY ${RSTUDIO_SOURCE_CODE}/nginx/root/ /
118+
COPY --chown=1001:0 ${RSTUDIO_SOURCE_CODE}/nginx/root/ /
119119

120120
# Changing ownership and user rights to support following use-cases:
121121
# 1) running container on OpenShift, whose default security model

rstudio/c9s-python-3.11/Dockerfile.cuda

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ RUN yum -y module enable nginx:$NGINX_VERSION && \
239239
COPY --chown=1001:0 ${RSTUDIO_SOURCE_CODE}/supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
240240

241241
# Copy extra files to the image.
242-
COPY ${RSTUDIO_SOURCE_CODE}/nginx/root/ /
242+
COPY --chown=1001:0 ${RSTUDIO_SOURCE_CODE}/nginx/root/ /
243243

244244
# Changing ownership and user rights to support following use-cases:
245245
# 1) running container on OpenShift, whose default security model

0 commit comments

Comments
 (0)