2023-12-01 01:22:11 +00:00
|
|
|
FROM alpine:3.18.5 AS get
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2023-10-19 07:08:33 +00:00
|
|
|
RUN apk add --no-cache wget
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2024-02-17 11:57:43 +00:00
|
|
|
ENV SEAFILE_VERSION=11.0.5
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 11:12:46 +00:00
|
|
|
RUN cd /tmp && \
|
2023-10-19 10:16:30 +00:00
|
|
|
wget https://download.seadrive.org/seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz?nocache=$(date +%s) -O seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz && \
|
2021-01-21 01:32:46 +00:00
|
|
|
tar -zxvf seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz && \
|
|
|
|
rm -f seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz
|
|
|
|
|
2024-02-16 07:49:25 +00:00
|
|
|
FROM ubuntu:jammy@sha256:f9d633ff6640178c2d0525017174a688e2c1aef28f0a0130b26bd5554491f0da AS pip
|
2023-10-18 18:39:17 +00:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
|
|
python3 \
|
|
|
|
python3-pip \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN pip3 install --target /pip-deps --timeout=3600 --no-cache-dir \
|
2024-02-19 09:59:37 +00:00
|
|
|
sqlalchemy==2.0.27 \
|
2024-02-19 10:00:31 +00:00
|
|
|
click==8.1.7 \
|
2024-02-19 10:05:18 +00:00
|
|
|
termcolor==2.4.0 \
|
2024-02-19 10:03:03 +00:00
|
|
|
colorlog==6.8.2 \
|
2024-02-19 10:01:35 +00:00
|
|
|
pymysql==1.1.0 \
|
2024-02-19 10:04:01 +00:00
|
|
|
jinja2==3.1.3 \
|
2024-02-19 10:01:27 +00:00
|
|
|
pycryptodome==3.20.0 \
|
2024-02-19 10:04:04 +00:00
|
|
|
lxml==4.9.4 \
|
2024-02-19 10:01:38 +00:00
|
|
|
python-ldap==3.4.4
|
2023-10-18 18:39:17 +00:00
|
|
|
|
|
|
|
RUN find /pip-deps -name "__pycache__" -type d -exec rm -r {} + && \
|
|
|
|
rm -rf /pip-deps/pip /pip-deps/wheel /pip-deps/setuptools
|
|
|
|
|
2024-02-16 07:49:25 +00:00
|
|
|
FROM ubuntu:jammy@sha256:f9d633ff6640178c2d0525017174a688e2c1aef28f0a0130b26bd5554491f0da
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2024-02-17 11:57:43 +00:00
|
|
|
ENV SEAFILE_VERSION=11.0.5
|
2023-10-18 18:39:17 +00:00
|
|
|
|
2021-01-23 12:26:43 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
2024-02-14 10:06:18 +00:00
|
|
|
netcat-openbsd \
|
2021-01-23 11:12:46 +00:00
|
|
|
socat \
|
2021-02-01 17:13:29 +00:00
|
|
|
cron \
|
2021-01-23 11:12:46 +00:00
|
|
|
tzdata \
|
2021-01-23 12:26:43 +00:00
|
|
|
psmisc \
|
|
|
|
net-tools \
|
|
|
|
libmariadb-dev \
|
2021-11-11 20:46:35 +00:00
|
|
|
ldap-utils \
|
|
|
|
ca-certificates \
|
2021-01-23 11:12:46 +00:00
|
|
|
python3 \
|
2021-01-23 12:26:43 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2021-01-23 11:12:46 +00:00
|
|
|
|
2023-10-18 18:39:17 +00:00
|
|
|
COPY --from=pip /pip-deps /usr/local/lib/python3.10/dist-packages
|
2024-02-19 10:28:38 +00:00
|
|
|
|
2021-01-26 21:42:27 +00:00
|
|
|
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION}
|
2023-10-18 18:39:17 +00:00
|
|
|
|
2021-01-23 11:12:46 +00:00
|
|
|
COPY scripts /scripts
|
|
|
|
RUN chmod u+x /scripts/*
|
2021-01-23 12:26:43 +00:00
|
|
|
|
2021-01-24 15:03:01 +00:00
|
|
|
RUN mkdir -p /opt/seafile/logs &&\
|
2021-02-01 17:13:44 +00:00
|
|
|
touch /opt/seafile/logs/common.log &&\
|
|
|
|
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/seafile.log &&\
|
|
|
|
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/controller.log &&\
|
|
|
|
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/ccnet.log &&\
|
|
|
|
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/gc.log &&\
|
2021-11-11 20:46:35 +00:00
|
|
|
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/seafdav.log &&\
|
2023-06-17 09:18:42 +00:00
|
|
|
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/notification-server.log &&\
|
|
|
|
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/seafile-monitor.log &&\
|
2023-10-18 13:36:05 +00:00
|
|
|
mkdir -p /etc/ldap/ && echo "TLS_REQCERT allow" >> /etc/ldap/ldap.conf
|
2021-01-24 15:03:01 +00:00
|
|
|
|
2023-06-17 08:36:59 +00:00
|
|
|
EXPOSE 8001 8080 8082 8083
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 11:12:46 +00:00
|
|
|
CMD ["/scripts/start.sh"]
|