From 8089e07bf50655fbf5891cdb53f78b2d99adc15e Mon Sep 17 00:00:00 2001 From: roicohen <213414225+roicohen326@users.noreply.github.com> Date: Thu, 18 Dec 2025 11:07:52 +0200 Subject: [PATCH] fix: upgrade to Python 3.9 slim bullseye due to eol error --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index cadbdca..9b061cf 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,22 @@ # syntax=docker/dockerfile:1 #--------- Generic stuff all our Dockerfiles should start with so we get caching ------------ -FROM python:3.7.10 +FROM python:3.9-slim-bullseye MAINTAINER Tim Sutton #-------------Application Specific Stuff ---------------------------------------------------- RUN apt-get -y update && \ apt-get install -y \ gettext \ - python-yaml \ + python3-yaml \ libgeos-dev \ - python-lxml \ + python3-lxml \ libgdal-dev \ build-essential \ - python-dev \ + python3-dev \ libjpeg-dev \ zlib1g-dev \ libfreetype6-dev \ - python-virtualenv + python3-virtualenv COPY requirements.txt /requirements.txt RUN pip install -r requirements.txt @@ -48,9 +48,9 @@ RUN --mount=type=bind,source=config/patch/redis.py,target=redis.py \ --mount=type=bind,source=config/patch/loader.py,target=loader.py \ --mount=type=bind,source=config/patch/spec.py,target=spec.py \ if [ "${PATCH_FILES}" = true ]; then \ - cp redis.py /usr/local/lib/python3.7/site-packages/mapproxy/cache/redis.py; \ - cp loader.py /usr/local/lib/python3.7/site-packages/mapproxy/config/loader.py; \ - cp spec.py /usr/local/lib/python3.7/site-packages/mapproxy/config/spec.py; \ + cp redis.py /usr/local/lib/python3.9/site-packages/mapproxy/cache/redis.py; \ + cp loader.py /usr/local/lib/python3.9/site-packages/mapproxy/config/loader.py; \ + cp spec.py /usr/local/lib/python3.9/site-packages/mapproxy/config/spec.py; \ fi RUN chgrp -R 0 /mapproxy /settings /start.sh && \