From cb5896aab7c1842ba256f63a3dc0ed9d59e59068 Mon Sep 17 00:00:00 2001 From: DanRunfola Date: Tue, 10 Dec 2024 10:06:02 -0500 Subject: [PATCH] image debug --- .../images/geoBoundariesBase.Dockerfile | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/geoBoundaryBuilder/images/geoBoundariesBase.Dockerfile b/geoBoundaryBuilder/images/geoBoundariesBase.Dockerfile index 7b1e153..ff73038 100644 --- a/geoBoundaryBuilder/images/geoBoundariesBase.Dockerfile +++ b/geoBoundaryBuilder/images/geoBoundariesBase.Dockerfile @@ -1,41 +1,43 @@ -FROM alpine:3.18 +FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 \ PIP_NO_CACHE_DIR=1 -# Update the package index and install dependencies -RUN apk add --no-cache \ +# Install system dependencies +RUN apt-get update && apt-get install -y --no-install-recommends \ python3 \ - py3-pip \ + python3-pip \ python3-dev \ musl-dev \ gcc \ g++ \ libffi-dev \ - openssl-dev \ + libssl-dev \ make \ git \ git-lfs \ - gdal \ - gdal-dev \ - geos-dev \ - proj-dev \ - jpeg-dev \ - zlib-dev \ - cairo-dev \ - py3-cffi \ - py3-psycopg2 + gdal-bin \ + libgdal-dev \ + libgeos-dev \ + libproj-dev \ + libjpeg-dev \ + zlib1g-dev \ + libcairo2-dev \ + libpq-dev \ + && apt-get clean && rm -rf /var/lib/apt/lists/* -# Install Python packages in steps for debugging +# Upgrade pip and install Python dependencies RUN pip install --upgrade pip && \ pip install prefect==3.1.5 kubernetes==25.3.0 +# Install geopandas and related dependencies RUN pip install geopandas==0.13.2 +# Install additional Python packages RUN pip install jsonschema==4.19.0 zipfile36==0.1.3 # Install Prefect Kubernetes components RUN pip install prefect-kubernetes==0.5.3 # Set up git-lfs -RUN git lfs install \ No newline at end of file +RUN git lfs install