This commit is contained in:
shim_ 2018-11-10 17:19:30 +01:00
parent 8167148f00
commit f993b3dc60

View File

@ -6,10 +6,20 @@ EXPOSE 80 10001 12001 8000 8080 8082
ENV SEAF=/opt/seafile
ENV INSTALLPATH=$SEAF/seafile-server-latest
ENV CCNET_CONF_DIR=$SEAF/ccnet
ENV SEAFILE_CONF_DIR=$SEAF/seafile-data
ENV SEAFILE_CENTRAL_CONF_DIR=$SEAF/conf
ENV PYTHONPATH=/usr/lib/python2.7/site-packages
COPY requirements.txt /tmp/requirements.txt
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories \
&& apk --no-cache add py-pip sqlite-dev py-mysqldb py-pillow py-setuptools sqlite curl bash openssl-dev libevent libselinux nginx \
&& apk --no-cache add py-pip sqlite-dev py-mysqldb py-imaging py-pillow py-setuptools sqlite zlib curl bash openssl-dev libevent libselinux nginx \
&& pip install -r /tmp/requirements.txt && apk --no-cache del py-pip \
&& rm -f /tmp/requirements.txt \
&& mkdir -p /run/nginx
@ -25,6 +35,8 @@ RUN ulimit -n 30000 && mkdir -p $SEAF/pids && \
ENV SEAF_UPGRADE_INTERVAL=3
WORKDIR $SEAF
ENTRYPOINT ["/sbin/seafile-server"]
#Defaults to run-upgrade options include: run, run-upgrade, upgrade, stop, stop-upgrade
CMD ["run-upgrade"]