Skip to content

Commit 0c8ef36

Browse files
committed
Upgrade clam
1 parent a0f8cf4 commit 0c8ef36

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,18 @@ COPY requirements.txt /opt/app/requirements.txt
1313
# Install packages
1414
RUN dnf update -y
1515
RUN 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
2019
RUN pip3.12 install -r requirements.txt
2120
RUN rm -rf /root/.cache/pip
2221

2322
# Download libraries we need to run in lambda
2423
WORKDIR /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
2928
RUN rpm2cpio json-c*.rpm | cpio -idmv
3029
RUN rpm2cpio pcre*.rpm | cpio -idmv
3130
RUN rpm2cpio libtool-ltdl*.rpm | cpio -idmv

0 commit comments

Comments
 (0)