seafile-containerized/image/seafile/Dockerfile
2019-08-05 17:57:40 +08:00

23 lines
669 B
Docker

FROM seafileltd/base-mc:18.04
WORKDIR /opt/seafile
RUN mkdir -p /etc/my_init.d
ENV SEAFILE_VERSION=7.0.4 SEAFILE_SERVER=seafile-server
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/
# For using TLS connection to LDAP/AD server with docker-ce.
RUN find /opt/seafile/ \( -name "liblber-*" -o -name "libldap-*" -o -name "libldap_r*" -o -name "libsasl2.so*" \) -delete
ADD scripts/create_data_links.sh /etc/my_init.d/01_create_data_links.sh
COPY scripts /scripts
COPY templates /templates
EXPOSE 80
CMD ["/sbin/my_init", "--", "/scripts/start.py"]