seafile-containerized/seafile/Dockerfile
2021-01-23 13:35:02 +01:00

49 lines
1,011 B
Docker

FROM alpine:3.13 AS get
RUN apk add --no-cache wget
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=8.0.2
RUN cd /tmp && \
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 alpine:3.9 as pip
RUN apk add --no-cache \
python3-dev \
py3-pip \
py3-setuptools
RUN python3 -m pip install --upgrade pip &&\
pip3 install --timeout=3600 \
click \
termcolor \
colorlog \
pymysql
FROM alpine:3.9
RUN apk add --no-cache \
bash \
tzdata \
procps \
psmisc \
net-tools \
socat \
python3 \
mariadb-dev
ENV SEAFILE_VERSION=8.0.2
ENV LD_LIBRARY_PATH=/lib:/usr/lib
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION}
COPY --from=pip /usr/lib/python3.6/site-packages /usr/lib/python3.6/site-packages
COPY scripts /scripts
RUN chmod u+x /scripts/*
EXPOSE 8080 8082 8001
CMD ["/scripts/start.sh"]