Skip to content

Commit f73eceb

Browse files
seafile 13.0
1 parent c881c59 commit f73eceb

File tree

20 files changed

+3324
-0
lines changed

20 files changed

+3324
-0
lines changed

image/pro_seafile_13.0/Dockerfile

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
FROM ubuntu:24.04
2+
ENV SEAFILE_SERVER=seafile-pro-server SEAFILE_VERSION=
3+
4+
# https://github.com/phusion/baseimage-docker
5+
COPY base_scripts /bd_build
6+
RUN /bd_build/prepare.sh && \
7+
/bd_build/system_services.sh && \
8+
/bd_build/utilities.sh && \
9+
/bd_build/cleanup.sh
10+
ENV DEBIAN_FRONTEND="teletype" \
11+
LANG="en_US.UTF-8" \
12+
LANGUAGE="en_US:en" \
13+
LC_ALL="en_US.UTF-8"
14+
15+
RUN echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
16+
| tee /etc/apt/sources.list.d/nginx.list \
17+
&& curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
18+
19+
# Security
20+
RUN apt-get update --fix-missing && apt-get upgrade -y
21+
22+
# Utility tools
23+
RUN apt-get install -y vim htop net-tools psmisc wget curl git unzip
24+
25+
# For suport set local time zone.
26+
RUN export DEBIAN_FRONTEND=noninteractive && apt-get install -y tzdata \
27+
nginx \
28+
libmysqlclient-dev \
29+
libmemcached11 libmemcached-dev \
30+
libxmlsec1 xmlsec1 \
31+
zlib1g-dev pwgen openssl poppler-utils \
32+
fuse \
33+
ldap-utils libldap2-dev ca-certificates dnsutils \
34+
clamdscan iputils-ping \
35+
ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy pkg-config
36+
37+
# Python3
38+
RUN apt-get install -y python3 python3-pip python3-setuptools python3-ldap python3-rados && \
39+
rm /usr/lib/python3.12/EXTERNALLY-MANAGED && \
40+
rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python && \
41+
pip3 install --no-cache-dir --ignore-installed -U setuptools cryptography && \
42+
rm -rf /usr/lib/python3/dist-packages/setuptools* && rm -rf /usr/lib/python3/dist-packages/cryptography*
43+
44+
RUN pip3 install --no-cache-dir --timeout=3600 \
45+
boto3 oss2 twilio configparser \
46+
click termcolor colorlog \
47+
sqlalchemy==2.0.* gevent==24.2.* pymysql==1.1.* jinja2 markupsafe==2.0.1 django-pylibmc pylibmc psd-tools lxml \
48+
django==4.2.* cffi==1.17.0 future==1.0.* mysqlclient==2.2.* captcha==0.6.* django_simple_captcha==0.6.* \
49+
pyjwt==2.9.* djangosaml2==1.9.* pysaml2==7.3.* pycryptodome==3.20.* python-ldap==3.4.* pillow==10.4.* pillow-heif==0.18.*
50+
51+
# Scripts
52+
COPY scripts_13.0 /scripts
53+
COPY templates /templates
54+
COPY services /services
55+
56+
# acme
57+
# RUN curl https://get.acme.sh | sh -s
58+
RUN unzip /scripts/acme.sh-master.zip -d /scripts/ && \
59+
mv /scripts/acme.sh-master /scripts/acme.sh && \
60+
cd /scripts/acme.sh && /scripts/acme.sh/acme.sh --install
61+
62+
RUN mkdir -p /etc/ldap/ && echo "TLS_REQCERT allow" >> /etc/ldap/ldap.conf && \
63+
mkdir -p /etc/clamav/ && echo "TCPSocket 3310" >> /etc/clamav/clamd.conf && \
64+
echo "TCPAddr av" >> /etc/clamav/clamd.conf && \
65+
chmod u+x /scripts/* && \
66+
mkdir -p /etc/my_init.d && \
67+
rm -f /etc/my_init.d/* && \
68+
cp /scripts/create_data_links.sh /etc/my_init.d/01_create_data_links.sh && \
69+
mkdir -p /etc/service/nginx && \
70+
mkdir -p /etc/nginx/sites-enabled && mkdir -p /etc/nginx/sites-available && \
71+
rm -f /etc/nginx/sites-enabled/* /etc/nginx/conf.d/* && \
72+
mv /services/nginx.conf /etc/nginx/nginx.conf && \
73+
mv /services/nginx.sh /etc/service/nginx/run
74+
75+
# Seafile
76+
WORKDIR /opt/seafile
77+
COPY seafile-pro-server-${SEAFILE_VERSION} /opt/seafile/seafile-pro-server-${SEAFILE_VERSION}
78+
79+
80+
EXPOSE 80
81+
82+
CMD ["/sbin/my_init", "--", "/scripts/enterpoint.sh"]

image/pro_seafile_13.0_arm/Dockerfile

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
FROM ubuntu:24.04
2+
ENV SEAFILE_SERVER=seafile-pro-server SEAFILE_VERSION=
3+
4+
# https://github.com/phusion/baseimage-docker
5+
COPY base_scripts /bd_build
6+
RUN /bd_build/prepare.sh && \
7+
/bd_build/system_services.sh && \
8+
/bd_build/utilities.sh && \
9+
/bd_build/cleanup.sh
10+
ENV DEBIAN_FRONTEND="teletype" \
11+
LANG="en_US.UTF-8" \
12+
LANGUAGE="en_US:en" \
13+
LC_ALL="en_US.UTF-8"
14+
15+
RUN echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
16+
| tee /etc/apt/sources.list.d/nginx.list \
17+
&& curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
18+
19+
# Security
20+
RUN apt-get update --fix-missing && apt-get upgrade -y
21+
22+
# Utility tools
23+
RUN apt-get install -y vim htop net-tools psmisc wget curl git unzip
24+
25+
# For suport set local time zone.
26+
RUN export DEBIAN_FRONTEND=noninteractive && apt-get install -y tzdata \
27+
nginx \
28+
libmysqlclient-dev \
29+
libmemcached11 libmemcached-dev \
30+
libxmlsec1 xmlsec1 \
31+
zlib1g-dev pwgen openssl poppler-utils \
32+
fuse \
33+
ldap-utils libldap2-dev ca-certificates dnsutils \
34+
clamdscan iputils-ping \
35+
ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy pkg-config
36+
37+
# Python3
38+
RUN apt-get install -y python3 python3-pip python3-setuptools python3-ldap python3-rados && \
39+
rm /usr/lib/python3.12/EXTERNALLY-MANAGED && \
40+
rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python && \
41+
pip3 install --no-cache-dir --ignore-installed -U setuptools cryptography && \
42+
rm -rf /usr/lib/python3/dist-packages/setuptools* && rm -rf /usr/lib/python3/dist-packages/cryptography*
43+
44+
RUN pip3 install --no-cache-dir --timeout=3600 \
45+
boto3 oss2 twilio configparser \
46+
click termcolor colorlog \
47+
sqlalchemy==2.0.* gevent==24.2.* pymysql==1.1.* jinja2 markupsafe==2.0.1 django-pylibmc pylibmc psd-tools lxml \
48+
django==4.2.* cffi==1.17.0 future==1.0.* mysqlclient==2.2.* captcha==0.6.* django_simple_captcha==0.6.* \
49+
pyjwt==2.9.* djangosaml2==1.9.* pysaml2==7.3.* pycryptodome==3.20.* python-ldap==3.4.* pillow==10.4.* pillow-heif==0.18.*
50+
51+
# Scripts
52+
COPY scripts_13.0 /scripts
53+
COPY templates /templates
54+
COPY services /services
55+
56+
# acme
57+
# RUN curl https://get.acme.sh | sh -s
58+
RUN unzip /scripts/acme.sh-master.zip -d /scripts/ && \
59+
mv /scripts/acme.sh-master /scripts/acme.sh && \
60+
cd /scripts/acme.sh && /scripts/acme.sh/acme.sh --install
61+
62+
RUN mkdir -p /etc/ldap/ && echo "TLS_REQCERT allow" >> /etc/ldap/ldap.conf && \
63+
mkdir -p /etc/clamav/ && echo "TCPSocket 3310" >> /etc/clamav/clamd.conf && \
64+
echo "TCPAddr av" >> /etc/clamav/clamd.conf && \
65+
chmod u+x /scripts/* && \
66+
mkdir -p /etc/my_init.d && \
67+
rm -f /etc/my_init.d/* && \
68+
cp /scripts/create_data_links.sh /etc/my_init.d/01_create_data_links.sh && \
69+
mkdir -p /etc/service/nginx && \
70+
mkdir -p /etc/nginx/sites-enabled && mkdir -p /etc/nginx/sites-available && \
71+
rm -f /etc/nginx/sites-enabled/* /etc/nginx/conf.d/* && \
72+
mv /services/nginx.conf /etc/nginx/nginx.conf && \
73+
mv /services/nginx.sh /etc/service/nginx/run
74+
75+
# Seafile
76+
WORKDIR /opt/seafile
77+
COPY seafile-pro-server-${SEAFILE_VERSION} /opt/seafile/seafile-pro-server-${SEAFILE_VERSION}
78+
79+
EXPOSE 80
80+
81+
CMD ["/sbin/my_init", "--", "/scripts/enterpoint.sh"]

image/seafile_13.0/Dockerfile

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
FROM ubuntu:24.04
2+
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=
3+
4+
# https://github.com/phusion/baseimage-docker
5+
COPY base_scripts /bd_build
6+
RUN /bd_build/prepare.sh && \
7+
/bd_build/system_services.sh && \
8+
/bd_build/utilities.sh && \
9+
/bd_build/cleanup.sh
10+
ENV DEBIAN_FRONTEND="teletype" \
11+
LANG="en_US.UTF-8" \
12+
LANGUAGE="en_US:en" \
13+
LC_ALL="en_US.UTF-8"
14+
15+
RUN echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
16+
| tee /etc/apt/sources.list.d/nginx.list \
17+
&& curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
18+
19+
# Security
20+
RUN apt-get update --fix-missing && apt-get upgrade -y
21+
22+
# Utility tools
23+
RUN apt-get install -y vim htop net-tools psmisc wget curl git unzip
24+
25+
# For suport set local time zone.
26+
RUN export DEBIAN_FRONTEND=noninteractive && apt-get install -y tzdata \
27+
nginx \
28+
libmysqlclient-dev \
29+
libmemcached11 libmemcached-dev \
30+
fuse poppler-utils \
31+
ldap-utils libldap2-dev ca-certificates dnsutils pkg-config
32+
33+
# Python3
34+
RUN apt-get install -y python3 python3-pip python3-setuptools python3-ldap && \
35+
rm /usr/lib/python3.12/EXTERNALLY-MANAGED && \
36+
rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python && \
37+
pip3 install --no-cache-dir --ignore-installed -U setuptools cryptography && \
38+
rm -rf /usr/lib/python3/dist-packages/setuptools* && rm -rf /usr/lib/python3/dist-packages/cryptography*
39+
40+
RUN pip3 install --no-cache-dir --timeout=3600 \
41+
click termcolor colorlog \
42+
sqlalchemy==2.0.* gevent==24.2.* pymysql==1.1.* jinja2 markupsafe==2.0.1 django-pylibmc pylibmc psd-tools lxml \
43+
django==4.2.* cffi==1.17.0 future==1.0.* mysqlclient==2.2.* captcha==0.6.* django_simple_captcha==0.6.* \
44+
pyjwt==2.9.* djangosaml2==1.9.* pysaml2==7.3.* pycryptodome==3.20.* python-ldap==3.4.* pillow==10.4.* pillow-heif==0.18.*
45+
46+
# Scripts
47+
COPY scripts_13.0 /scripts
48+
COPY templates /templates
49+
COPY services /services
50+
51+
# acme
52+
# RUN curl https://get.acme.sh | sh -s
53+
RUN unzip /scripts/acme.sh-master.zip -d /scripts/ && \
54+
mv /scripts/acme.sh-master /scripts/acme.sh && \
55+
cd /scripts/acme.sh && /scripts/acme.sh/acme.sh --install
56+
57+
RUN mkdir -p /etc/ldap/ && echo "TLS_REQCERT allow" >> /etc/ldap/ldap.conf && \
58+
chmod u+x /scripts/* && rm /scripts/cluster* && \
59+
mkdir -p /etc/my_init.d && \
60+
rm -f /etc/my_init.d/* && \
61+
cp /scripts/create_data_links.sh /etc/my_init.d/01_create_data_links.sh && \
62+
mkdir -p /etc/service/nginx && \
63+
mkdir -p /etc/nginx/sites-enabled && mkdir -p /etc/nginx/sites-available && \
64+
rm -f /etc/nginx/sites-enabled/* /etc/nginx/conf.d/* && \
65+
mv /services/nginx.conf /etc/nginx/nginx.conf && \
66+
mv /services/nginx.sh /etc/service/nginx/run
67+
68+
# Seafile
69+
WORKDIR /opt/seafile
70+
COPY seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION}
71+
72+
EXPOSE 80
73+
74+
CMD ["/sbin/my_init", "--", "/scripts/enterpoint.sh"]

image/seafile_13.0_arm/Dockerfile

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
FROM ubuntu:24.04
2+
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=
3+
4+
# https://github.com/phusion/baseimage-docker
5+
COPY base_scripts /bd_build
6+
RUN /bd_build/prepare.sh && \
7+
/bd_build/system_services.sh && \
8+
/bd_build/utilities.sh && \
9+
/bd_build/cleanup.sh
10+
ENV DEBIAN_FRONTEND="teletype" \
11+
LANG="en_US.UTF-8" \
12+
LANGUAGE="en_US:en" \
13+
LC_ALL="en_US.UTF-8"
14+
15+
RUN echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
16+
| tee /etc/apt/sources.list.d/nginx.list \
17+
&& curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
18+
19+
# Security
20+
RUN apt-get update --fix-missing && apt-get upgrade -y
21+
22+
# Utility tools
23+
RUN apt-get install -y vim htop net-tools psmisc wget curl git unzip
24+
25+
# For suport set local time zone.
26+
RUN export DEBIAN_FRONTEND=noninteractive && apt-get install -y tzdata \
27+
nginx \
28+
libmysqlclient-dev \
29+
libmemcached11 libmemcached-dev \
30+
fuse poppler-utils \
31+
ldap-utils libldap2-dev ca-certificates dnsutils pkg-config
32+
33+
# Python3
34+
RUN apt-get install -y python3 python3-pip python3-setuptools python3-ldap && \
35+
rm /usr/lib/python3.12/EXTERNALLY-MANAGED && \
36+
rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python && \
37+
pip3 install --no-cache-dir --ignore-installed -U setuptools cryptography && \
38+
rm -rf /usr/lib/python3/dist-packages/setuptools* && rm -rf /usr/lib/python3/dist-packages/cryptography*
39+
40+
RUN pip3 install --no-cache-dir --timeout=3600 \
41+
click termcolor colorlog \
42+
sqlalchemy==2.0.* gevent==24.2.* pymysql==1.1.* jinja2 markupsafe==2.0.1 django-pylibmc pylibmc psd-tools lxml \
43+
django==4.2.* cffi==1.17.0 future==1.0.* mysqlclient==2.2.* captcha==0.6.* django_simple_captcha==0.6.* \
44+
pyjwt==2.9.* djangosaml2==1.9.* pysaml2==7.3.* pycryptodome==3.20.* python-ldap==3.4.* pillow==10.4.* pillow-heif==0.18.*
45+
46+
# Scripts
47+
COPY scripts_13.0 /scripts
48+
COPY templates /templates
49+
COPY services /services
50+
51+
# acme
52+
# RUN curl https://get.acme.sh | sh -s
53+
RUN unzip /scripts/acme.sh-master.zip -d /scripts/ && \
54+
mv /scripts/acme.sh-master /scripts/acme.sh && \
55+
cd /scripts/acme.sh && /scripts/acme.sh/acme.sh --install
56+
57+
RUN mkdir -p /etc/ldap/ && echo "TLS_REQCERT allow" >> /etc/ldap/ldap.conf && \
58+
chmod u+x /scripts/* && rm /scripts/cluster* && \
59+
mkdir -p /etc/my_init.d && \
60+
rm -f /etc/my_init.d/* && \
61+
cp /scripts/create_data_links.sh /etc/my_init.d/01_create_data_links.sh && \
62+
mkdir -p /etc/service/nginx && \
63+
mkdir -p /etc/nginx/sites-enabled && mkdir -p /etc/nginx/sites-available && \
64+
rm -f /etc/nginx/sites-enabled/* /etc/nginx/conf.d/* && \
65+
mv /services/nginx.conf /etc/nginx/nginx.conf && \
66+
mv /services/nginx.sh /etc/service/nginx/run
67+
68+
# Seafile
69+
WORKDIR /opt/seafile
70+
COPY seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION}
71+
72+
EXPOSE 80
73+
74+
CMD ["/sbin/my_init", "--", "/scripts/enterpoint.sh"]
420 KB
Binary file not shown.

0 commit comments

Comments
 (0)