diff --git a/Dockerfile b/Dockerfile index 3d44290d0..d2d907aa2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -87,8 +87,10 @@ RUN --mount=type=cache,target=/root/.cache/pip \ && pip config set global.index-url ${PIP_MIRROR} \ && pip install --upgrade pip \ && pip install --upgrade setuptools wheel \ + && pip install Cython==0.29.35 \ + && pip install --no-build-isolation pymssql \ && pip install $(grep -E 'jms|jumpserver' requirements/requirements.txt) -i ${PIP_JMS_MIRROR} \ - && pip install -r requirements/requirements.txt + && pip install -r requirements/requirements.txt --use-deprecated=legacy-resolver COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver RUN echo > /opt/jumpserver/config.yml \ diff --git a/requirements/requirements.txt b/requirements/requirements.txt index f7c0cc8c8..42ae5f1e5 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -128,9 +128,9 @@ kubernetes==21.7.0 # DB requirements mysqlclient==2.1.0 PyMySQL==1.0.2 -oracledb==1.0.1 +oracledb==1.2.2 psycopg2-binary==2.9.1 -pymssql==2.1.5 +# pymssql==2.2.7 django-mysql==3.9.0 django-redis==5.2.0 python-redis-lock==3.7.0