FROM seafileltd/base:16.04 WORKDIR /opt/seafile RUN mkdir -p /etc/my_init.d ENV SEAFILE_VERSION=6.2.5 RUN mkdir -p /opt/seafile/ && \ curl -sSL -o - https://download.seadrive.org/seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz \ | tar xzf - -C /opt/seafile/ ADD create_data_links.sh /etc/my_init.d/01_create_data_links.sh COPY scripts /scripts COPY templates /templates COPY bootstrap.conf /opt/bootstrap.conf CMD ["/sbin/my_init", "--", "/scripts/start.py"]