Merge pull request #125 from mkuf/renovate/python-3.x

chore(deps): update python docker tag to v3.12
This commit is contained in:
Markus Küffner
2024-03-23 17:15:27 +01:00
committed by GitHub
4 changed files with 18 additions and 11 deletions

View File

@@ -1,20 +1,26 @@
## Get Klipper Source and Build venv
##
FROM python:3.11-bookworm as build
FROM python:3.12-bookworm as build
RUN apt update \
&& apt install -y cmake \
&& apt clean
WORKDIR /opt
COPY requirements-prind.txt .
RUN python -m venv venv \
&& venv/bin/pip install -r requirements-prind.txt
ARG REPO=https://github.com/Klipper3d/klipper
ARG VERSION=master
WORKDIR /opt
RUN git clone ${REPO} klipper \
&& cd klipper \
&& git checkout ${VERSION} \
&& rm -rf .git
RUN python -m venv venv \
&& venv/bin/pip install -r klipper/scripts/klippy-requirements.txt \
&& venv/bin/pip install numpy==1.25.2 \
RUN venv/bin/pip install -r klipper/scripts/klippy-requirements.txt \
&& venv/bin/python -m compileall klipper/klippy \
&& venv/bin/python klipper/klippy/chelper/__init__.py
###
@@ -22,7 +28,7 @@ RUN python -m venv venv \
## Klippy Runtime Image
##
FROM python:3.11-slim-bookworm as run
FROM python:3.12-slim-bookworm as run
WORKDIR /opt
RUN groupadd klipper --gid 1000 \

View File

@@ -0,0 +1 @@
numpy==1.26.4

View File

@@ -1,4 +1,4 @@
FROM python:3.11-bookworm as build
FROM python:3.12-bookworm as build
ARG REPO=https://github.com/KlipperScreen/KlipperScreen
ARG VERSION=master
@@ -18,7 +18,7 @@ RUN git clone ${REPO} klipperscreen \
RUN python -m venv venv \
&& venv/bin/pip install -r klipperscreen/scripts/KlipperScreen-requirements.txt
FROM python:3.11-slim-bookworm as run
FROM python:3.12-slim-bookworm as run
RUN apt update \
&& apt install -y \

View File

@@ -1,5 +1,5 @@
## Get Code and Build venv
FROM python:3.11-bookworm as build
FROM python:3.12-bookworm as build
ARG REPO=https://github.com/Arksine/moonraker
ARG VERSION=master
@@ -15,7 +15,7 @@ RUN python -m venv venv \
&& venv/bin/pip install -r moonraker/scripts/moonraker-requirements.txt
## Runtime Image
FROM python:3.11-slim-bookworm as run
FROM python:3.12-slim-bookworm as run
RUN apt update \
&& apt install -y \