Change containers to Python 3.12

This commit is contained in:
Cyber MacGeddon 2025-05-17 23:14:32 +01:00
parent e04d3631fd
commit be420377d6
6 changed files with 36 additions and 21 deletions

View file

@ -8,10 +8,12 @@ FROM docker.io/fedora:42 AS base
ENV PIP_BREAK_SYSTEM_PACKAGES=1 ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN dnf install -y python3 python3-pip python3-wheel python3-aiohttp && \ RUN dnf install -y python3.12 && \
dnf clean all alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
python -m ensurepip --upgrade && \
RUN pip3 install --no-cache-dir pulsar-client==3.7.0 pip3 install --no-cache-dir wheel aiohttp && \
pip3 install --no-cache-dir pulsar-client==3.7.0 && \
dnf clean all
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Build a container which contains the built Python packages. The build # Build a container which contains the built Python packages. The build

View file

@ -8,10 +8,12 @@ FROM docker.io/fedora:42 AS base
ENV PIP_BREAK_SYSTEM_PACKAGES=1 ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN dnf install -y python3 python3-pip python3-wheel python3-aiohttp \ RUN dnf install -y python3.12 && \
python3-rdflib alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
python -m ensurepip --upgrade && \
RUN pip3 install --no-cache-dir boto3 pulsar-client==3.7.0 pip3 install --no-cache-dir wheel aiohttp && \
pip3 install --no-cache-dir pulsar-client==3.7.0 && \
dnf clean all
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Build a container which contains the built Python packages. The build # Build a container which contains the built Python packages. The build

View file

@ -8,8 +8,12 @@ FROM docker.io/fedora:42 AS base
ENV PIP_BREAK_SYSTEM_PACKAGES=1 ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN dnf install -y python3 python3-pip python3-wheel python3-aiohttp \ RUN dnf install -y python3.12 && \
python3-rdflib alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
python -m ensurepip --upgrade && \
pip3 install --no-cache-dir wheel aiohttp rdflib && \
pip3 install --no-cache-dir pulsar-client==3.7.0 && \
dnf clean all
RUN pip3 install --no-cache-dir \ RUN pip3 install --no-cache-dir \
anthropic cohere mistralai openai google-generativeai \ anthropic cohere mistralai openai google-generativeai \

View file

@ -8,8 +8,12 @@ FROM docker.io/fedora:42 AS ai
ENV PIP_BREAK_SYSTEM_PACKAGES=1 ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN dnf install -y python3 python3-pip python3-wheel python3-aiohttp \ RUN dnf install -y python3.12 && \
python3-rdflib alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
python -m ensurepip --upgrade && \
pip3 install --no-cache-dir wheel aiohttp && \
pip3 install --no-cache-dir pulsar-client==3.7.0 && \
dnf clean all
RUN pip3 install torch==2.5.1+cpu \ RUN pip3 install torch==2.5.1+cpu \
--index-url https://download.pytorch.org/whl/cpu --index-url https://download.pytorch.org/whl/cpu

View file

@ -8,10 +8,12 @@ FROM docker.io/fedora:42 AS base
ENV PIP_BREAK_SYSTEM_PACKAGES=1 ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN dnf install -y python3 python3-pip python3-wheel python3-aiohttp \ RUN dnf install -y python3.12 && \
python3-rdflib tesseract poppler poppler-utils alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
python -m ensurepip --upgrade && \
RUN pip3 install --no-cache-dir pytesseract pulsar-client==3.7.0 pip3 install --no-cache-dir wheel aiohttp && \
pip3 install --no-cache-dir pulsar-client==3.7.0 && \
dnf clean all
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Build a container which contains the built Python packages. The build # Build a container which contains the built Python packages. The build

View file

@ -8,11 +8,12 @@ FROM docker.io/fedora:42 AS base
ENV PIP_BREAK_SYSTEM_PACKAGES=1 ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN dnf install -y python3 python3-pip python3-wheel python3-aiohttp \ RUN dnf install -y python3.12 && \
python3-rdflib alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
python -m ensurepip --upgrade && \
RUN pip3 install --no-cache-dir \ pip3 install --no-cache-dir wheel aiohttp && \
google-cloud-aiplatform pulsar-client==3.7.0 pip3 install --no-cache-dir pulsar-client==3.7.0 && \
dnf clean all
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Build a container which contains the built Python packages. The build # Build a container which contains the built Python packages. The build