Update 'Dockerfile'

This commit is contained in:
shimun 2021-06-06 12:09:19 +00:00
parent 21023671f5
commit 9561a29e9d

View File

@ -17,7 +17,7 @@ RUN apt update && apt install locales -y && apt install -y procps libmariadb-dev
RUN python3 -m pip install --upgrade pip && rm -r /root/.cache/pip
RUN pip3 install --timeout=3600 click termcolor colorlog pymysql requests \
RUN pip3 install --timeout=3600 click termcolor colorlog pymysql \
django && rm -r /root/.cache/pip
ADD https://raw.githubusercontent.com/haiwen/seahub/master/requirements.txt /tmp/hub-requirements.txt
@ -45,6 +45,8 @@ COPY scripts/setup.sh /usr/bin/setup
RUN ulimit -n 30000 && mkdir -p $SEAF/pids && \
chmod +x /usr/local/sbin/upgrade /usr/bin/setup
RUN pip2 install requests scriptine
ENV SEAF_UPGRADE_INTERVAL=3
HEALTHCHECK --interval=30s --timeout=30s --start-period=30s CMD (curl http://localhost:8000 || (echo "failed seahub"; exit 1)) && (curl http://localhost:8082 || (echo "failed seafhttp"; exit 1)) && (bash -c '[ $(curl --silent --output /dev/null --write-out "%{http_code}" http://localhost:8080) -eq 401 ]' || (echo "failed seafdav"; exit 1)) || exit 1