Copy over the seafile-cli start script, set ownership to bash scripts

This commit is contained in:
flow.gunso
2019-03-15 08:16:15 +01:00
parent fe5adb2003
commit f619b5ac8f

View File

@@ -8,6 +8,7 @@ RUN mkdir /.seafile ;\
COPY assets/seafile.list /etc/apt/sources.list.d/
COPY assets/supervisord.conf /.supervisord/
COPY assets/seaf-cli-start.sh /
COPY entrypoint.sh /
RUN apt-key adv \
@@ -23,7 +24,9 @@ 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 -R /volume ;\
chown $UID.$GID /entrypoint.sh ;\
chown $UID.$GID /seaf-cli-start.sh
USER $UNAME
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]