From dcee0370dc45365a2b6938931f7a20c69e3f6a17 Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Fri, 15 Mar 2019 00:17:00 +0100 Subject: [PATCH] Move Supervisord related files into it's own directory --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d592ad..aad63b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,12 @@ FROM debian:jessie ENV DEBIAN_FRONTEND noninteractive +RUN mkdir /.seafile ;\ + mkdir /.supervisord ;\ + mkdir /volume + COPY assets/seafile.list /etc/apt/sources.list.d/ -COPY assets/supervisord.conf / +COPY assets/supervisord.conf /.supervisord/ COPY entrypoint.sh / RUN apt-key adv \ @@ -12,17 +16,14 @@ RUN apt-key adv \ RUN apt-get update ;\ apt-get install -o Dpkg::Options::="--force-confold" -y seafile-cli supervisor -RUN mkdir /.seafile; mkdir /volume; touch supervisord.log - 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 /volume ;\ - chown $UID.$GID /supervisord.log ;\ - chown $UID.$GID /supervisord.conf + chown $UID.$GID -R /.supervisord ;\ + chown $UID.$GID -R /volume USER $UNAME ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] \ No newline at end of file