This commit is contained in:
sniper-py 2020-04-14 16:17:15 +08:00
parent 97e6238a2d
commit 37225af7cb
2 changed files with 16 additions and 5 deletions

View file

@ -13,8 +13,19 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get install tzdata -y
# Nginx # Nginx
RUN apt-get install -y nginx RUN apt-get install -y nginx
# Java
RUN apt-get install -y openjdk-8-jre
# Libreoffice
RUN apt-get install -y libreoffice libreoffice-script-provider-python libsm-dev
RUN apt-get install -y ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
# Tools
RUN apt-get install -y zlib1g-dev pwgen openssl poppler-utils
# Python3 # Python3
RUN apt-get install -y python3 python3-pip python3-setuptools python3-ldap RUN apt-get install -y python3 python3-pip python3-setuptools python3-ldap python-rados
RUN python3.6 -m pip install --upgrade pip && rm -r /root/.cache/pip RUN python3.6 -m pip install --upgrade pip && rm -r /root/.cache/pip
RUN pip3 install --timeout=3600 click termcolor colorlog pymysql \ RUN pip3 install --timeout=3600 click termcolor colorlog pymysql \
@ -24,6 +35,9 @@ RUN pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 \
sqlalchemy psd-tools django-pylibmc django-simple-captcha && \ sqlalchemy psd-tools django-pylibmc django-simple-captcha && \
rm -r /root/.cache/pip rm -r /root/.cache/pip
RUN pip3 install --timeout=3600 boto oss2 pycryptodome twilio python-ldap configparser && \
rm -r /root/.cache/pip
# Scripts # Scripts
COPY scripts_7.1 /scripts COPY scripts_7.1 /scripts
@ -51,9 +65,6 @@ RUN mkdir -p /opt/seafile/ && cd /opt/seafile/ && \
tar -zxvf seafile-pro-server_${SEAFILE_VERSION}_x86-64_Ubuntu.tar.gz && \ tar -zxvf seafile-pro-server_${SEAFILE_VERSION}_x86-64_Ubuntu.tar.gz && \
rm -f seafile-pro-server_${SEAFILE_VERSION}_x86-64_Ubuntu.tar.gz rm -f seafile-pro-server_${SEAFILE_VERSION}_x86-64_Ubuntu.tar.gz
# 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
EXPOSE 80 EXPOSE 80

View file

@ -223,7 +223,7 @@ FILE_SERVER_ROOT = '%s://%s/seafhttp'
shutil.move(src, shared_seafiledir) shutil.move(src, shared_seafiledir)
call('ln -sf ' + join(shared_seafiledir, fn) + ' ' + src) call('ln -sf ' + join(shared_seafiledir, fn) + ' ' + src)
generate_seafevents_conf() # generate_seafevents_conf() # Only in pro version
loginfo('Updating version stamp') loginfo('Updating version stamp')
update_version_stamp(os.environ['SEAFILE_VERSION']) update_version_stamp(os.environ['SEAFILE_VERSION'])