-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c08a43c
commit cb5896a
Showing
1 changed file
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
RUN git lfs install |