ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:a5d32dc2ab15ff0d7dbd72af26e361eb1f3e87a0d29ec3a1ceab24ad7b3e6ba9 in / |
CMD ["/bin/bash"] |
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=11.0.9 |
COPY dir:61ad531ea8c31e0190ce97ff67ada39fc59e79773f50a9322033cd56eaf6c56b 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:0c7b2e59773554ba398b8a99cbf53786c9ba57dd19d9f22a6f100699b26facbd in /scripts |
COPY dir:629d4f657b79b3b057e0a769fb9c0b0b6453178eb4bddd41a7645f37f6b3d810 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"] |