Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ RUN mkdir -p ${BASE_DIR}\temp ${SD_INSTALL_DIR} ${BASE_DIR}/outputs

ADD parameters/* ${SD_INSTALL_DIR}/parameters/

RUN groupmod -g 1000 abc && \
usermod -u 1000 abc

COPY --chown=abc:abc *.sh ./

RUN chmod +x /entry.sh
Expand All @@ -46,7 +49,7 @@ RUN cd /tmp && \
bash Miniconda3-latest-Linux-x86_64.sh -b && \
rm Miniconda3-latest-Linux-x86_64.sh && \
chown -R abc:abc /root && \
chown -R abc:abc ${SD_INSTALL_DIR}

chown -R abc:abc ${SD_INSTALL_DIR} && \
chown -R abc:abc /home/abc

EXPOSE 9000/tcp
5 changes: 3 additions & 2 deletions docker/root/etc/s6-overlay/s6-rc.d/init-chown/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
#echo "-------------------------------------"
# permissions
#echo "chown'ing home directory to ensure correct permissions."
chown -R abc:abc /home/abc
find /home/abc -type d \( ! -user abc -o ! -group abc \) -exec chown -R abc:abc {} \;
find /home/abc -type f \( ! -user abc -o ! -group abc \) -exec chown abc:abc {} \;
#echo "Done!"
#echo -e "-------------------------------------\n"

Expand All @@ -19,4 +20,4 @@ find $BASE_DIR -type d -exec chmod 777 {} +
echo Delete this file to reset access rights at next launch > $BASE_DIR/'Delete_this_file_to_reset_access_rights_at_next_launch'
echo "Done!"
echo -e "-------------------------------------\n"
fi
fi