[WIP]
This commit is contained in:
parent
8167148f00
commit
f993b3dc60
14
Dockerfile
14
Dockerfile
@ -6,10 +6,20 @@ EXPOSE 80 10001 12001 8000 8080 8082
|
|||||||
|
|
||||||
ENV SEAF=/opt/seafile
|
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
|
COPY requirements.txt /tmp/requirements.txt
|
||||||
|
|
||||||
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories \
|
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 \
|
&& pip install -r /tmp/requirements.txt && apk --no-cache del py-pip \
|
||||||
&& rm -f /tmp/requirements.txt \
|
&& rm -f /tmp/requirements.txt \
|
||||||
&& mkdir -p /run/nginx
|
&& mkdir -p /run/nginx
|
||||||
@ -25,6 +35,8 @@ RUN ulimit -n 30000 && mkdir -p $SEAF/pids && \
|
|||||||
|
|
||||||
ENV SEAF_UPGRADE_INTERVAL=3
|
ENV SEAF_UPGRADE_INTERVAL=3
|
||||||
|
|
||||||
|
WORKDIR $SEAF
|
||||||
|
|
||||||
ENTRYPOINT ["/sbin/seafile-server"]
|
ENTRYPOINT ["/sbin/seafile-server"]
|
||||||
#Defaults to run-upgrade options include: run, run-upgrade, upgrade, stop, stop-upgrade
|
#Defaults to run-upgrade options include: run, run-upgrade, upgrade, stop, stop-upgrade
|
||||||
CMD ["run-upgrade"]
|
CMD ["run-upgrade"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user