ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:ebe009f86035c175ba244badd298a2582914415cf62783d510eab3a311a5d4e1 in / |
CMD ["/bin/bash"] |
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=11.0.13 |
COPY dir:4b3d633ee39abaca08c2a12b3cfe163a2679aa0212152e5e31c515ac82d539df in /bd_build |
/bin/sh -c /bd_build/prepare.sh && /bd_build/system_services.sh && /bd_build/utilities.sh && /bd_build/cleanup.sh |
ENV DEBIAN_FRONTEND="teletype" LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8" |
/bin/sh -c echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | tee /etc/apt/sources.list.d/nginx.list && curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add - |
/bin/sh -c apt-get update --fix-missing && apt-get upgrade -y |
/bin/sh -c apt-get install -y vim htop net-tools psmisc wget curl git unzip |
/bin/sh -c export DEBIAN_FRONTEND=noninteractive && apt-get install -y tzdata nginx libmysqlclient-dev libmemcached11 libmemcached-dev fuse ldap-utils libldap2-dev ca-certificates dnsutils |
/bin/sh -c apt-get install -y python3 python3-pip python3-setuptools python3-ldap && rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python && python3 -m pip install --upgrade pip && rm -r /root/.cache/pip |
/bin/sh -c pip3 install --timeout=3600 click termcolor colorlog pymysql django==4.2.* future==0.18.* mysqlclient==2.1.* pillow==10.2.* pylibmc captcha==0.5.* markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 django-pylibmc django_simple_captcha==0.6.* pyjwt==2.6.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.15.1 python-ldap==3.4.3 psd-tools lxml && rm -r /root/.cache/pip |
COPY dir:0009564d893ccb5e37a692c1fbca73e8a80c16e3a600bcbc6a297e40a7a08374 in /scripts |
COPY dir:83d7a0146029c3e4642f37a85d7409c47d9529af9cc25e621a8b398cd50defa9 in /templates |
COPY dir:1ecb1a14ab26801aff82880f951c7bb4277f8a4c8c649fb1c93b218e3a943533 in /services |
/bin/sh -c unzip /scripts/acme.sh-master.zip -d /scripts/ && mv /scripts/acme.sh-master /scripts/acme.sh && cd /scripts/acme.sh && /scripts/acme.sh/acme.sh --install |
/bin/sh -c mkdir -p /etc/ldap/ && echo "TLS_REQCERT allow" >> /etc/ldap/ldap.conf && chmod u+x /scripts/* && rm /scripts/cluster* && mkdir -p /etc/my_init.d && rm -f /etc/my_init.d/* && cp /scripts/create_data_links.sh /etc/my_init.d/01_create_data_links.sh && mkdir -p /etc/service/nginx && mkdir -p /etc/nginx/sites-enabled && mkdir -p /etc/nginx/sites-available && rm -f /etc/nginx/sites-enabled/* /etc/nginx/conf.d/* && mv /services/nginx.conf /etc/nginx/nginx.conf && mv /services/nginx.sh /etc/service/nginx/run |
WORKDIR /opt/seafile |
/bin/sh -c mkdir -p /opt/seafile/ && cd /opt/seafile/ && wget -q https://download.seadrive.org/seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz && tar -zxf seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz && rm -f seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz |
EXPOSE 80 |
CMD ["/sbin/my_init", "--", "/scripts/enterpoint.sh"] |