diff --git a/Dockerfile b/Dockerfile index 727b0e0..2f0773a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update \ && mkdir /user COPY ./.bash_profile /user/ -RUN chmod 755 /user; chmod 644 /user/.bash_profile +RUN chmod 755 /user; chmod 755 /user/.bash_profile COPY ./entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 35d5a21..fec998d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin +cp -fv /user/.bash_profile ${HOME}/.profile exec sleep infinity \ No newline at end of file