diff --git a/Dockerfile b/Dockerfile index 895863c5b81f5d3197b1fdfcf281984e4820b780..68a01d46b95abe990db39ed6aecd0f172f189536 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