mirror of
https://github.com/dimalo/klipper-web-control-docker.git
synced 2026-05-07 03:26:43 +02:00
update to python 3.11
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM python:3.10-bullseye as builder
|
||||
FROM python:3.11-bullseye as builder
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG KLIPPER_BRANCH="master"
|
||||
@@ -68,7 +68,7 @@ RUN ${MOONRAKER_VENV_DIR}/bin/pip install wheel gpiod && \
|
||||
${MOONRAKER_VENV_DIR}/bin/pip install --no-cache-dir -f ${WHEELS} -r scripts/moonraker-requirements.txt
|
||||
RUN ${MOONRAKER_VENV_DIR}/bin/python -m compileall moonraker
|
||||
|
||||
FROM python:3.10-slim-bullseye as image
|
||||
FROM python:3.11-slim-bullseye as image
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
@@ -125,7 +125,7 @@ COPY --chown=${USER}:${USER} --from=builder ${WHEELS} ${WHEELS}
|
||||
|
||||
RUN pip install --no-index -f ${WHEELS} supervisord-dependent-startup gpiod numpy matplotlib && \
|
||||
mkdir -p /usr/lib/python3 && \
|
||||
ln -s /usr/local/lib/python3.10/site-packages /usr/lib/python3/dist-packages && \
|
||||
ln -s /usr/local/lib/python3.11/site-packages /usr/lib/python3/dist-packages && \
|
||||
rm -Rf ${WHEELS}
|
||||
|
||||
USER ${USER}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM python:3.10-bullseye
|
||||
FROM python:3.11-bullseye
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG KLIPPER_BRANCH="master"
|
||||
@@ -28,7 +28,7 @@ RUN apt-get update && \
|
||||
|
||||
RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen
|
||||
RUN locale-gen
|
||||
RUN python -m pip install pip -U
|
||||
RUN python -m pip install -U pip wheel
|
||||
|
||||
ENV LC_ALL en_GB.UTF-8
|
||||
ENV LANG en_GB.UTF-8
|
||||
|
||||
Reference in New Issue
Block a user