From 10b4eda111a292ea2afc59cf96ed531d338c1ecf Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Tue, 9 Apr 2019 11:48:24 +0200 Subject: [PATCH] Don't change ownership at build time, allow all to execute the entrypoint --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6aba8c6..831702b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,7 @@ COPY assets/supervisord.conf /.supervisord/ COPY assets/infinite-seaf-cli-start.sh / COPY assets/change-ownership.sh / COPY entrypoint.sh / +RUN chmod 777 /entrypoint.sh # Safely import Seafile APT key, then install both seafile-cli and supervisord. COPY utils/build/import-seafile-apt-key.sh / @@ -42,7 +43,6 @@ RUN rm -f /import-seafile-apt-key.sh ENV UNAME=seafuser ENV UID=1000 ENV GID=1000 -RUN /bin/bash /change-ownership.sh USER $UNAME ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] \ No newline at end of file