From 4c527f4aa4663005634c1a5c55211d954d70f677 Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Tue, 9 Apr 2019 10:39:57 +0200 Subject: [PATCH] Copy @c6039412427e94592838728eff8b5583f40e7106 into the container and run it --- Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 830b31e..6aba8c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,7 @@ RUN mkdir /.seafile ;\ COPY assets/seafile.list /etc/apt/sources.list.d/ COPY assets/supervisord.conf /.supervisord/ COPY assets/infinite-seaf-cli-start.sh / +COPY assets/change-ownership.sh / COPY entrypoint.sh / # Safely import Seafile APT key, then install both seafile-cli and supervisord. @@ -41,13 +42,7 @@ RUN rm -f /import-seafile-apt-key.sh ENV UNAME=seafuser ENV UID=1000 ENV GID=1000 -RUN groupadd -g $GID -o $UNAME ;\ - useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME ;\ - chown $UID.$GID -R /.seafile ;\ - chown $UID.$GID -R /.supervisord ;\ - chown $UID.$GID -R /volume ;\ - chown $UID.$GID /entrypoint.sh ;\ - chown $UID.$GID /infinite-seaf-cli-start.sh +RUN /bin/bash /change-ownership.sh USER $UNAME ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] \ No newline at end of file