From 789d15bc5bdadce093cc219833761316b4a4b54b Mon Sep 17 00:00:00 2001
From: Thorge Petersen <petersen@rz.uni-kiel.de>
Date: Thu, 9 Jan 2025 11:36:56 +0100
Subject: [PATCH] build(Dockerfile): switch base image to python:3.10 and
 update installation steps for dependencies, pipx, and Poetry

---
 Dockerfile | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 895863c..68a01d4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,25 @@
-FROM alpine
+FROM python:3.10
 
 # Install necessary system dependencies
-RUN apk add --no-cache poetry proj-util gdal-dev gcc python3-dev musl-dev geos-dev proj-dev libmagic
+RUN apt-get update && \
+    apt-get install -y \
+    libgdal-dev \
+    libmagic-dev \
+    gcc \
+    python3-dev \
+    musl-dev \
+    libgeos-dev \
+    libproj-dev \
+    && python3 -m pip install --upgrade pip \
+    && python3 -m pip install pipx \
+    && python3 -m pipx ensurepath
 
-# Set the PATH for pipx
+# Ensure pipx is in the PATH
 ENV PATH="/root/.local/bin:${PATH}"
 
+# Install poetry using pipx
+RUN pipx install poetry
+
 # Set the working directory inside the container
 WORKDIR /app
 
-- 
GitLab