Skip to content

Instantly share code, notes, and snippets.

@asifbacchus
Last active November 11, 2021 08:04
Show Gist options
  • Save asifbacchus/71cf540543551db14829811eb30ff0a0 to your computer and use it in GitHub Desktop.
Save asifbacchus/71cf540543551db14829811eb30ff0a0 to your computer and use it in GitHub Desktop.
Seafile Pro Dockerfile
# Modified Seafile-PRO container
# Addresses TLS issue connecting to OpenLDAP
# build args
ARG SEAF_VERSION
FROM docker.seadrive.org/seafileltd/seafile-pro-mc:${SEAF_VERSION}
ARG SEAF_VERSION
# add useful utilities and update certificates
RUN apt-get update \
&& apt-get install -y iputils-ping nano ldap-utils ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f \
/var/cache/apt/archives/*.deb \
/var/cache/apt/archives/partial/*.deb \
/var/cache/apt/*.bin
# remove LDAP libraries
RUN cd /opt/seafile/seafile-pro-server-${SEAF_VERSION}/seafile/lib \
&& rm -f \
liblber-2.4.so.2 \
libldap-2.4.so.2 \
libsasl2.so.2 \
libldap_r-2.4.so.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment