2017-01-03 02:34:32 +00:00
|
|
|
FROM seafileltd/seafile:16.04
|
2016-11-11 04:54:47 +00:00
|
|
|
WORKDIR /opt/seafile
|
|
|
|
|
2016-12-21 07:53:07 +00:00
|
|
|
ENV SEAFILE_VERSION=6.0.7
|
2016-11-11 04:54:47 +00:00
|
|
|
|
2016-11-29 06:44:26 +00:00
|
|
|
# syslog-ng and syslog-forwarder would mess up the container stdout, not good
|
|
|
|
# when debugging/upgrading.
|
|
|
|
RUN sed -i -e 's|\(^exec syslog-ng.*$\)|\1 >>/var/log/syslog-ng.log 2>\&1|g' /etc/service/syslog-ng/run && \
|
|
|
|
rm -rf /etc/service/syslog-forwarder
|
|
|
|
|
2016-11-11 04:54:47 +00:00
|
|
|
RUN mkdir -p /opt/seafile/ && \
|
2016-12-21 07:53:07 +00:00
|
|
|
curl -sSL -o - https://bintray.com/artifact/download/seafile-org/seafile/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
|
|
|
|
|
|
|
RUN mkdir -p /etc/my_init.d
|
|
|
|
ADD create_data_links.sh /etc/my_init.d/create_data_links.sh
|