2021-01-21 01:33:21 +00:00
|
|
|
FROM alpine:3.13 AS get
|
|
|
|
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=8.0.2
|
|
|
|
|
|
|
|
RUN apk add --no-cache wget
|
|
|
|
|
|
|
|
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.13
|
|
|
|
|
2021-01-21 02:40:42 +00:00
|
|
|
# TODO seperate pip stage
|
2021-01-21 01:33:21 +00:00
|
|
|
|
|
|
|
RUN apk add \
|
|
|
|
python3-dev \
|
|
|
|
py3-pip \
|
|
|
|
py3-setuptools \
|
|
|
|
mariadb-dev \
|
|
|
|
build-base \
|
|
|
|
jpeg-dev \
|
|
|
|
zlib-dev \
|
|
|
|
freetype-dev \
|
|
|
|
lcms2-dev \
|
|
|
|
openjpeg-dev \
|
|
|
|
tiff-dev \
|
|
|
|
tk-dev \
|
|
|
|
tcl-dev
|
|
|
|
|
|
|
|
RUN python3 -m pip install --upgrade pip \
|
|
|
|
&& pip3 install --timeout=3600 \
|
|
|
|
Django==2.2.14 \
|
|
|
|
future \
|
|
|
|
captcha \
|
|
|
|
django-statici18n \
|
|
|
|
django-post_office==3.3.0 \
|
|
|
|
django-webpack_loader \
|
|
|
|
gunicorn \
|
|
|
|
mysqlclient \
|
|
|
|
django-picklefield==2.1.1 \
|
|
|
|
openpyxl \
|
|
|
|
qrcode \
|
|
|
|
django-formtools \
|
|
|
|
django-simple-captcha \
|
|
|
|
djangorestframework==3.11.1 \
|
|
|
|
python-dateutil \
|
|
|
|
requests \
|
|
|
|
pillow \
|
|
|
|
pyjwt \
|
|
|
|
pycryptodome \
|
|
|
|
requests_oauthlib \
|
|
|
|
&& rm -r /root/.cache/pip
|
|
|
|
|
|
|
|
|
2021-01-21 02:40:42 +00:00
|
|
|
RUN apk add bash
|
|
|
|
|
|
|
|
RUN mkdir -p /opt/seafile/ && cd /opt/seafile/
|
|
|
|
|
|
|
|
COPY --from=get /tmp/seafile-server*/seahub/ /opt/seafile/seahub
|
|
|
|
COPY --from=get /tmp/seafile-server*/seahub.sh /opt/seafile
|
2021-01-21 01:33:21 +00:00
|
|
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
2021-01-21 02:40:42 +00:00
|
|
|
WORKDIR /opt/seafile
|
|
|
|
|
|
|
|
CMD ["/opt/seafile/seahub.sh", "start", "8000"]
|