Skip to content
Snippets Groups Projects
Verified Commit 789d15bc authored by Thorge Petersen's avatar Thorge Petersen
Browse files

build(Dockerfile): switch base image to python:3.10 and update installation...

build(Dockerfile): switch base image to python:3.10 and update installation steps for dependencies, pipx, and Poetry
parent 0b3d00cf
No related branches found
No related tags found
1 merge request!1Update Formats, Dependencies, and Dockerfile Configuration
Pipeline #1425 passed
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment