Skip to content

Commit 63c7960

Browse files
author
sylvain BRUNET
committed
add rust dependancy for 0.105+ compilation
1 parent a3de8a3 commit 63c7960

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ COPY requirements.txt /var/task/requirements.txt
1111

1212
# Install packages
1313
RUN yum update -y && amazon-linux-extras enable python3.8 && yum clean metadata && yum install python3.8 -y && yum install -y cpio yum-utils zip unzip less libcurl-devel binutils openssl openssl-devel wget tar && yum groupinstall -y "Development Tools"
14-
RUN yum install -y cpio yum-utils zip unzip less git make autoconf automake libtool libtool-ltdl\* pkg-config gcc-c++ cmake3 wget check bzip2-\* libxml2-\* pcre2-\* json-c-\* ncurses-\* sendmail-devel\*
14+
RUN yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y
15+
RUN yum install -y cpio yum-utils zip unzip less git make autoconf automake libtool libtool-ltdl\* pkg-config gcc-c++ cmake3 wget check bzip2-\* libxml2-\* pcre2-\* json-c-\* ncurses-\* sendmail-devel\* rustfmt rust-gdb
1516

1617
# This had --no-cache-dir, tracing through multiple tickets led to a problem in wheel
1718
RUN /usr/bin/pip3 --version
@@ -46,7 +47,7 @@ RUN git clone https://github.com/Cisco-Talos/clamav-devel.git && \
4647
# Copy over the binaries and libraries
4748
RUN cp -Rp /usr/local/clamav/bin/clamscan /usr/local/clamav/bin/freshclam /usr/local/clamav/lib64/* /var/task/bin/ && rm -Rf /var/task/bin/pkgonfig \
4849
&& cp -p /usr/bin/ld.bfd /var/task/bin/ld \
49-
&& cp -p /usr/lib64/libbfd-2.29.1-30.amzn2.so /var/task/bin
50+
&& cp -p /usr/lib64/libbfd-2.29.1-*.amzn2.so /var/task/bin
5051
RUN for i in $(ldd /var/task/bin/freshclam|awk '{print $1}'|grep -v "linux"|grep -v "clam"); do cp /lib64/$i /var/task/bin/; done
5152
RUN for i in $(ldd /var/task/bin/clamscan|awk '{print $1}'|grep -v "linux"|grep -v "clam"); do cp /lib64/$i /var/task/bin/; done
5253
RUN strip /var/task/bin/* 2>/dev/null || true

0 commit comments

Comments
 (0)