seafile-containerized/seafile/Dockerfile

40 lines
1.3 KiB
Docker
Raw Permalink Normal View History

# See https://hub.docker.com/r/phusion/baseimage/tags/
2021-01-18 11:22:48 +00:00
FROM phusion/baseimage:bionic-1.0.0
2021-01-17 23:32:02 +00:00
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=8.0.2
2021-01-17 23:49:50 +00:00
RUN export DEBIAN_FRONTEND=noninteractive
2021-01-17 23:49:50 +00:00
# Package installation
RUN apt-get update --fix-missing && apt-get install -y vim htop net-tools psmisc wget curl git socat \
2021-01-17 23:49:50 +00:00
tzdata \
nginx \
python3 python3-pip python3-setuptools \
2021-01-17 23:50:21 +00:00
libmysqlclient-dev \
2021-01-17 23:49:50 +00:00
&& rm -rf /var/lib/apt/lists/*
2021-01-21 01:32:46 +00:00
RUN mkdir -p /opt/seafile/ && cd /opt/seafile/ && \
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
# Python3
2021-01-17 23:54:40 +00:00
RUN python3.6 -m pip install --upgrade pip \
&& pip3 install --timeout=3600 click termcolor colorlog pymysql \
Pillow pylibmc captcha jinja2 sqlalchemy django==1.11.29 django-pylibmc django-simple-captcha \
2021-01-17 23:55:08 +00:00
future mysqlclient \
2021-01-17 23:54:40 +00:00
&& rm -r /root/.cache/pip
# Scripts
2021-01-17 23:46:10 +00:00
COPY scripts /scripts
RUN chmod u+x /scripts/*
# Seafile
WORKDIR /opt/seafile
# For using TLS connection to LDAP/AD server with docker-ce.
RUN find /opt/seafile/ \( -name "liblber-*" -o -name "libldap-*" -o -name "libldap_r*" -o -name "libsasl2.so*" \) -delete
EXPOSE 8080 8082 8001
2021-01-22 21:27:05 +00:00
CMD ["/sbin/my_init", "--", "/scripts/start.sh"]