Skip to content

Commit

Permalink
Change packaging to use python 3.11 (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-at-redhat authored Apr 24, 2024
1 parent c2bd835 commit 1d9e19a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packaging/container/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1d9e19a

Please sign in to comment.