From cb1efdc2cd012e283ad829989805825e83df345a Mon Sep 17 00:00:00 2001 From: Simon Norris Date: Tue, 17 Dec 2024 10:28:48 -0800 Subject: [PATCH] use latest bcdata in docker image --- Dockerfile | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 218c3c65..43036353 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/osgeo/gdal:ubuntu-small-3.8.3 +FROM ghcr.io/osgeo/gdal:ubuntu-small-3.10.0 RUN apt-get update && apt-get --assume-yes upgrade \ && apt-get -qq install -y --no-install-recommends postgresql-common \ @@ -12,13 +12,22 @@ RUN apt-get update && apt-get --assume-yes upgrade \ && apt-get -qq install -y --no-install-recommends zip \ && apt-get -qq install -y --no-install-recommends unzip \ && apt-get -qq install -y --no-install-recommends parallel \ - && apt-get -qq install -y --no-install-recommends python3-dev \ && apt-get -qq install -y --no-install-recommends python3-pip \ + && apt-get -qq install -y --no-install-recommends python3-dev \ + && apt-get -qq install -y --no-install-recommends python3-venv \ && apt-get -qq install -y --no-install-recommends python3-psycopg2 \ - && pip3 install --upgrade numpy \ - && pip3 install bcdata==0.10.4 \ - && pip3 install scikit-image \ - && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ + && rm -rf /var/lib/apt/lists/* + +RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ && unzip awscliv2.zip \ - && ./aws/install \ - && rm -rf /var/lib/apt/lists/* \ No newline at end of file + && ./aws/install + +WORKDIR /home/bcfishpass + +RUN python3 -m venv /opt/venv && \ + /opt/venv/bin/python -m pip install -U pip && \ + /opt/venv/bin/python -m pip install --no-cache-dir --upgrade numpy && \ + /opt/venv/bin/python -m pip install --no-cache-dir bcdata && \ + /opt/venv/bin/python -m pip install --no-cache-dir scikit-image + +ENV PATH="/opt/venv/bin:$PATH" \ No newline at end of file