File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,19 +13,18 @@ COPY requirements.txt /opt/app/requirements.txt
1313# Install packages
1414RUN dnf update -y
1515RUN dnf install -y cpio 'dnf-command(download)' zip unzip less
16- # Don't love this but python 3.12 is not in AL2023 yet
17- RUN dnf install -y https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/python3.12-3.12.1-4.el9.x86_64.rpm https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/python3.12-libs-3.12.1-4.el9.x86_64.rpm https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/python3.12-pip-wheel-23.2.1-4.el9.noarch.rpm https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/libnsl2-2.0.0-1.el9.x86_64.rpm https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/python3.12-pip-23.2.1-4.el9.noarch.rpm
16+ RUN dnf install -y python3.12 python3.12-pip
1817
1918# This had --no-cache-dir, tracing through multiple tickets led to a problem in wheel
2019RUN pip3.12 install -r requirements.txt
2120RUN rm -rf /root/.cache/pip
2221
2322# Download libraries we need to run in lambda
2423WORKDIR /tmp
25- RUN dnf download clamav clamav -lib clamav-update json-c pcre2 libtool-ltdl
26- RUN rpm2cpio clamav-0 *.rpm | cpio -idmv
27- RUN rpm2cpio clamav -lib*.rpm | cpio -idmv
28- RUN rpm2cpio clamav-update *.rpm | cpio -idmv
24+ RUN dnf download clamav1.4 clamav1.4 -lib clamav1.4-freshclam json-c pcre2 libtool-ltdl
25+ RUN rpm2cpio clamav1.4-1. *.rpm | cpio -idmv
26+ RUN rpm2cpio clamav1.4 -lib*.rpm | cpio -idmv
27+ RUN rpm2cpio clamav1.4-freshclam *.rpm | cpio -idmv
2928RUN rpm2cpio json-c*.rpm | cpio -idmv
3029RUN rpm2cpio pcre*.rpm | cpio -idmv
3130RUN rpm2cpio libtool-ltdl*.rpm | cpio -idmv
You can’t perform that action at this time.
0 commit comments