From 60edea0cbb82ea5e8280d50ef470aae7bb0c3636 Mon Sep 17 00:00:00 2001 From: Gordon Inggs Date: Fri, 1 Dec 2023 00:40:52 +0200 Subject: [PATCH] Reordering dependency install --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac0a9bb..c3c651b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,10 +19,14 @@ RUN export CHROMEDRIVER_VERSION=$(curl --silent https://chromedriver.storage.goo chmod 755 /usr/bin/chromedriver && \ rm -f chromedriver_linux64.zip -RUN pip install --no-cache gevent psycopg2 redis +# Pinning various packages to fix dependency issues +RUN pip3 install --no-cache --force-reinstall alembic==1.6.5 markupsafe==2.0.1 pyopenssl==22.1.0 apache-superset==1.5.3 + +RUN pip install --no-cache gevent # Install base drivers required for helm chart to work -RUN pip install psycopg2==2.9.1 \ +RUN pip install gevent \ + && pip install psycopg2==2.9.1 \ && pip install redis==3.5.3 \ # Install database connectors # Find which driver you need based on the analytics database @@ -45,8 +49,5 @@ RUN pip install psycopg2==2.9.1 \ RUN pip install pystan==2.19.1.1 \ && pip install prophet -# Pinning various packages to fix dependency issues -RUN pip3 install --force-reinstall alembic==1.6.5 markupsafe==2.0.1 pyopenssl==22.1.0 apache-superset==1.5.3 - # Switching back to using the `superset` user USER superset