Skip to content

Commit 88da3eb

Browse files
authored
Add option to build with Python 3.12 (#75)
Add kayobe dockerfile arg to install python 3.12
1 parent 8a24af6 commit 88da3eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/kayobe/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ ENV container docker
2828
# CMD ["/usr/sbin/init"]
2929

3030
ARG BASE_IMAGE="quay.io/rockylinux/rockylinux:8"
31+
ARG USE_PYTHON_312="false"
3132
RUN dnf install epel-release -y && \
3233
dnf update -y --nobest && \
34+
if [ "$USE_PYTHON_312" ] ; then \
35+
dnf -y install python3.12 && \
36+
ln -sf /bin/python3.12 /bin/python3 && \
37+
python3 -m ensurepip ; fi && \
3338
dnf install -y gcc git vim python3-pyyaml findutils\
3439
libffi-devel sudo which openssh-server e2fsprogs \
3540
diffstat diffutils debootstrap procps-ng gdisk util-linux \

0 commit comments

Comments
 (0)