2019-04-19 10:11:28 +00:00
|
|
|
FROM seafileltd/pro-base-mc:18.04
|
2018-04-03 02:58:14 +00:00
|
|
|
WORKDIR /opt/seafile
|
|
|
|
|
2019-11-19 02:43:52 +00:00
|
|
|
ENV SEAFILE_VERSION=7.0.11 SEAFILE_SERVER=seafile-pro-server
|
2018-04-03 02:58:14 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /etc/my_init.d
|
|
|
|
|
|
|
|
RUN mkdir -p /opt/seafile/
|
|
|
|
|
2018-10-16 07:16:51 +00:00
|
|
|
RUN curl -sSL -G -d "p=/pro/seafile-pro-server_${SEAFILE_VERSION}_x86-64_Ubuntu.tar.gz&dl=1" https://download.seafile.com/d/6e5297246c/files/ \
|
2018-04-03 02:58:14 +00:00
|
|
|
| tar xzf - -C /opt/seafile/
|
|
|
|
|
2019-09-21 08:03:17 +00:00
|
|
|
#ADD seafile-pro-server_${SEAFILE_VERSION}_x86-64_Ubuntu.tar.gz /opt/seafile/
|
|
|
|
|
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-03 02:58:14 +00:00
|
|
|
|
|
|
|
COPY scripts /scripts
|
|
|
|
COPY templates /templates
|
|
|
|
|
2018-10-16 07:16:51 +00:00
|
|
|
EXPOSE 80
|
|
|
|
|
2018-04-03 02:58:14 +00:00
|
|
|
CMD ["/sbin/my_init", "--", "/scripts/start.py"]
|