From 9561a29e9d15c247c45e278dd5b811ac7c5c28f7 Mon Sep 17 00:00:00 2001 From: shimun Date: Sun, 6 Jun 2021 12:09:19 +0000 Subject: [PATCH] Update 'Dockerfile' --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 712c336..cc00db4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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