File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
docker/root/etc/s6-overlay/s6-rc.d/init-chown Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ RUN mkdir -p ${BASE_DIR}\temp ${SD_INSTALL_DIR} ${BASE_DIR}/outputs
3232
3333ADD parameters/* ${SD_INSTALL_DIR}/parameters/
3434
35+ RUN groupmod -g 1000 abc && \
36+ usermod -u 1000 abc
37+
3538COPY --chown=abc:abc *.sh ./
3639
3740RUN chmod +x /entry.sh
@@ -46,7 +49,7 @@ RUN cd /tmp && \
4649 bash Miniconda3-latest-Linux-x86_64.sh -b && \
4750 rm Miniconda3-latest-Linux-x86_64.sh && \
4851 chown -R abc:abc /root && \
49- chown -R abc:abc ${SD_INSTALL_DIR}
50-
52+ chown -R abc:abc ${SD_INSTALL_DIR} && \
53+ chown -R abc:abc /home/abc
5154
5255EXPOSE 9000/tcp
Original file line number Diff line number Diff line change 33#echo "-------------------------------------"
44# permissions
55#echo "chown'ing home directory to ensure correct permissions."
6- chown -R abc:abc /home/abc
6+ find /home/abc -type d \( ! -user abc -o ! -group abc \) -exec chown -R abc:abc {} \;
7+ find /home/abc -type f \( ! -user abc -o ! -group abc \) -exec chown abc:abc {} \;
78#echo "Done!"
89#echo -e "-------------------------------------\n"
910
@@ -19,4 +20,4 @@ find $BASE_DIR -type d -exec chmod 777 {} +
1920echo Delete this file to reset access rights at next launch > $BASE_DIR/'Delete_this_file_to_reset_access_rights_at_next_launch'
2021echo "Done!"
2122echo -e "-------------------------------------\n"
22- fi
23+ fi
You can’t perform that action at this time.
0 commit comments