2023-09-29 01:07:12 +00:00
|
|
|
FROM alpine:3.18.4 AS get
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 11:12:46 +00:00
|
|
|
RUN apk add --no-cache wget
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2023-10-18 13:26:31 +00:00
|
|
|
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=11.0.1
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 11:12:46 +00:00
|
|
|
RUN cd /tmp && \
|
2021-01-21 01:32:46 +00:00
|
|
|
wget https://download.seadrive.org/seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz && \
|
|
|
|
tar -zxvf seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz && \
|
|
|
|
rm -f seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz
|
|
|
|
|
2023-10-13 10:44:08 +00:00
|
|
|
FROM ubuntu:jammy@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e496e5c1f05f
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 12:26:43 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
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
|
|
|
python3-click \
|
|
|
|
python3-termcolor \
|
|
|
|
python3-colorlog \
|
|
|
|
python3-pymysql \
|
2021-01-26 16:28:49 +00:00
|
|
|
python3-jinja2 \
|
|
|
|
python3-sqlalchemy \
|
2022-03-26 21:41:52 +00:00
|
|
|
python3-pycryptodome \
|
2022-08-11 06:47:14 +00:00
|
|
|
python3-lxml \
|
2023-10-18 13:35:46 +00:00
|
|
|
python3-ldap \
|
2021-01-23 12:26:43 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2021-01-23 11:12:46 +00:00
|
|
|
|
2022-03-27 00:01:36 +00:00
|
|
|
RUN cp -r /usr/lib/python3/dist-packages/Cryptodome /usr/lib/python3/dist-packages/Crypto
|
|
|
|
|
2023-10-18 13:26:31 +00:00
|
|
|
ENV SEAFILE_VERSION=11.0.1
|
2021-01-23 11:12:46 +00:00
|
|
|
|
2021-01-26 21:42:27 +00:00
|
|
|
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION}
|
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 &&\
|
2021-11-11 20:46:35 +00:00
|
|
|
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"]
|