2018-12-13 07:18:34 +00:00
|
|
|
FROM seafileltd/base:18.04
|
2016-11-11 04:54:47 +00:00
|
|
|
WORKDIR /opt/seafile
|
|
|
|
|
2017-08-08 06:19:53 +00:00
|
|
|
RUN mkdir -p /etc/my_init.d
|
|
|
|
|
2019-01-24 03:01:56 +00:00
|
|
|
ENV SEAFILE_VERSION=6.3.4 SEAFILE_SERVER=seafile-server
|
2017-08-08 06:19:53 +00:00
|
|
|
|
2016-11-11 04:54:47 +00:00
|
|
|
RUN mkdir -p /opt/seafile/ && \
|
2017-08-08 06:12:39 +00:00
|
|
|
curl -sSL -o - https://download.seadrive.org/seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz \
|
2016-11-14 06:47:40 +00:00
|
|
|
| tar xzf - -C /opt/seafile/
|
2016-11-11 04:54:47 +00:00
|
|
|
|
2018-05-12 03:36:15 +00:00
|
|
|
ADD scripts/create_data_links.sh /etc/my_init.d/01_create_data_links.sh
|
2018-04-12 09:12:43 +00:00
|
|
|
|
|
|
|
COPY scripts /scripts
|
|
|
|
COPY templates /templates
|
|
|
|
|
|
|
|
CMD ["/sbin/my_init", "--", "/scripts/start.py"]
|