From 6fabfb2aab0d2c912c68afc97faaf4bb96cf4049 Mon Sep 17 00:00:00 2001 From: shimun Date: Tue, 14 Apr 2020 14:15:03 +0200 Subject: [PATCH] python3 --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf9ef7f..23896ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,14 @@ ENV SEAF=/opt/seafile COPY requirements.txt /tmp/requirements.txt -RUN apt update && apt install locales -y && apt install -y --no-install-recommends procps openssl python2.7 sqlite3 python-mysqldb python-pil curl libjansson4 libfuse2 python-pip python-pip-whl python-setuptools \ - && pip install -r /tmp/requirements.txt && apt remove -y python-pip \ +RUN apt update && apt install locales -y && apt install -y --no-install-recommends procps openssl python2.7 sqlite3 python-mysqldb python-pil curl libjansson4 libfuse2 python-pip python-pip-whl python-setuptools python3 sqlite3 python3 python3-pip python3-setuptools python3-ldap \ && rm -rf /var/lib/apt/lists/* /tmp/requirements.txt +RUN python3 -m pip install --upgrade pip && rm -r /root/.cache/pip + +RUN pip3 install --timeout=3600 click termcolor colorlog pymysql \ + django==1.11.29 && rm -r /root/.cache/pip + #ENV RIFFOL_VERSION libc-2.24 #ENV RIFFOL_HASH e6aea0a91abe74dc0892b0814a0485f16ce8b738b4672b4980b15a398c013e974d5d1b6c27eed69899196cc21014e407f7ff74ee5636a8690ebd639fe0ca5abb #RUN curl -L https://github.com/riboseinc/riffol/releases/download/0.1.0/riffol-$RIFFOL_VERSION.tar.gz -o /tmp/riffol-$RIFFOL_VERSION.tar.gz && \