Move Supervisord related files into it's own directory

This commit is contained in:
flow.gunso
2019-03-15 00:17:00 +01:00
parent 64bd2212cf
commit dcee0370dc

View File

@@ -2,8 +2,12 @@ FROM debian:jessie
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN mkdir /.seafile ;\
mkdir /.supervisord ;\
mkdir /volume
COPY assets/seafile.list /etc/apt/sources.list.d/ COPY assets/seafile.list /etc/apt/sources.list.d/
COPY assets/supervisord.conf / COPY assets/supervisord.conf /.supervisord/
COPY entrypoint.sh / COPY entrypoint.sh /
RUN apt-key adv \ RUN apt-key adv \
@@ -12,17 +16,14 @@ RUN apt-key adv \
RUN apt-get update ;\ RUN apt-get update ;\
apt-get install -o Dpkg::Options::="--force-confold" -y seafile-cli supervisor apt-get install -o Dpkg::Options::="--force-confold" -y seafile-cli supervisor
RUN mkdir /.seafile; mkdir /volume; touch supervisord.log
ENV UNAME=seafuser ENV UNAME=seafuser
ENV UID=1000 ENV UID=1000
ENV GID=1000 ENV GID=1000
RUN groupadd -g $GID -o $UNAME ;\ RUN groupadd -g $GID -o $UNAME ;\
useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME ;\ useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME ;\
chown $UID.$GID -R /.seafile ;\ chown $UID.$GID -R /.seafile ;\
chown $UID.$GID -R /volume ;\ chown $UID.$GID -R /.supervisord ;\
chown $UID.$GID /supervisord.log ;\ chown $UID.$GID -R /volume
chown $UID.$GID /supervisord.conf
USER $UNAME USER $UNAME
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]