22 lines
754 B
Docker
22 lines
754 B
Docker
|
FROM debian:bullseye-slim
|
||
|
LABEL maintainer "Jiang Yio <inportb@gmail.com>"
|
||
|
|
||
|
ENV SEAFILE_DIR=/opt/seafile
|
||
|
RUN apt update && \
|
||
|
apt install -y python3 python3-setuptools python3-pip python3-jinja2 python3-ldap sqlite3 curl procps dialog nano && \
|
||
|
apt clean && rm -rf /var/lib/apt/lists/* && \
|
||
|
pip3 install --no-cache-dir --timeout=3600 Pillow captcha sqlalchemy==1.4.3 django-simple-captcha && \
|
||
|
adduser --disabled-password --home "${SEAFILE_DIR}" --gecos "" seafile && \
|
||
|
mkdir -p "${SEAFILE_DIR}" && chown seafile:seafile "${SEAFILE_DIR}"
|
||
|
|
||
|
COPY entrypoint.sh /usr/local/bin/seaf-ctl
|
||
|
|
||
|
EXPOSE 8000 8080 8082
|
||
|
VOLUME ["/opt/seafile"]
|
||
|
|
||
|
USER seafile
|
||
|
ENV PATH=${PATH}:${SEAFILE_DIR}/seafile-server-latest
|
||
|
|
||
|
ENTRYPOINT ["/usr/local/bin/seaf-ctl"]
|
||
|
CMD ["init"]
|