mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
9c3fdcae32
* didn't use launcher * travis * link error & update readme * del launcher.ps1, del bootstrap func under launcher file * [readme] password/plan b, add a new admin * review
24 lines
730 B
Docker
24 lines
730 B
Docker
FROM seafileltd/base:16.04
|
|
WORKDIR /opt/seafile
|
|
|
|
# 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 /etc/my_init.d
|
|
|
|
ENV SEAFILE_VERSION=6.2.3
|
|
|
|
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"]
|