diff --git a/packaging/container/Dockerfile b/packaging/container/Dockerfile index beb88e37c..071d93388 100644 --- a/packaging/container/Dockerfile +++ b/packaging/container/Dockerfile @@ -1,8 +1,9 @@ FROM quay.io/centos/centos:stream9 as builder ARG VERSION -RUN dnf -y update && dnf install -y golang make python3 python3-pip git -RUN pip install wheel +RUN dnf -y update && \ + dnf install -y golang make python3.11 python3.11-pip git +RUN pip3.11 install wheel ADD source.tar.gz /source WORKDIR /source @@ -21,10 +22,11 @@ COPY receptor_python_worker-${VERSION}-py3-none-any.whl /tmp COPY receptor.conf /etc/receptor/receptor.conf RUN dnf -y update && \ - dnf -y install python3-pip && \ + dnf -y install python3.11-pip && \ dnf clean all && \ - pip install --no-cache-dir wheel dumb-init && \ - pip install --no-cache-dir /tmp/*.whl && \ + pip3.11 install --no-cache-dir wheel && \ + pip3.11 install --no-cache-dir dumb-init && \ + pip3.11 install --no-cache-dir /tmp/*.whl && \ rm /tmp/*.whl COPY --from=builder /source/receptor /usr/bin/receptor