seafile-containerized/seafile-server/Dockerfile

51 lines
1.4 KiB
Docker
Raw Normal View History

2021-11-20 09:40:53 +00:00
FROM alpine:3.13.7 AS get
RUN apk add --no-cache wget
2021-12-10 11:41:11 +00:00
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=9.0.2
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
FROM ubuntu:focal-20211006
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
socat \
2021-02-01 17:13:29 +00:00
cron \
tzdata \
psmisc \
net-tools \
libmariadb-dev \
ldap-utils \
ca-certificates \
python3 \
python3-click \
python3-termcolor \
python3-colorlog \
python3-pymysql \
2021-01-26 16:28:49 +00:00
python3-jinja2 \
python3-sqlalchemy \
&& rm -rf /var/lib/apt/lists/*
2021-12-10 11:41:11 +00:00
ENV SEAFILE_VERSION=9.0.2
2021-01-26 21:42:27 +00:00
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION}
COPY scripts /scripts
RUN chmod u+x /scripts/*
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 &&\
ln -sf /opt/seafile/logs/common.log /opt/seafile/logs/seafdav.log &&\
echo "TLS_REQCERT allow" >> /etc/ldap/ldap.conf
EXPOSE 8080 8082 8001
CMD ["/scripts/start.sh"]