seafile-containerized/image/seafile/Dockerfile

17 lines
587 B
Docker
Raw Normal View History

2017-01-03 07:08:34 +00:00
FROM seafileltd/base:16.04
WORKDIR /opt/seafile
2017-08-08 06:10:11 +00:00
ENV SEAFILE_VERSION=6.1.1
# 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
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 \
| tar xzf - -C /opt/seafile/
RUN mkdir -p /etc/my_init.d
ADD create_data_links.sh /etc/my_init.d/create_data_links.sh