From d5a6170d0dd9d7932a9385b164e7151706d911dd Mon Sep 17 00:00:00 2001 From: waseem-polus Date: Fri, 1 Dec 2023 08:22:34 -0600 Subject: [PATCH] Added latest versions of yum packages to dockerfile --- scrapers/.hadolint.yaml | 2 -- scrapers/Dockerfile | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 scrapers/.hadolint.yaml diff --git a/scrapers/.hadolint.yaml b/scrapers/.hadolint.yaml deleted file mode 100644 index faf3736..0000000 --- a/scrapers/.hadolint.yaml +++ /dev/null @@ -1,2 +0,0 @@ -ignored: - - DL3033 \ No newline at end of file diff --git a/scrapers/Dockerfile b/scrapers/Dockerfile index 217ca23..844d302 100644 --- a/scrapers/Dockerfile +++ b/scrapers/Dockerfile @@ -1,5 +1,5 @@ FROM public.ecr.aws/lambda/python@sha256:f0c3116a56d167eba8021a5d7c595f969835fbe78826303326f80de00d044733 as build -RUN yum install -y unzip && \ +RUN yum install -y unzip-* && \ curl -Lo "/tmp/chromedriver-linux64.zip" "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chromedriver-linux64.zip" && \ curl -Lo "/tmp/chrome-linux64.zip" "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chrome-linux64.zip" && \ unzip /tmp/chromedriver-linux64.zip -d /opt/ && \ @@ -7,10 +7,10 @@ RUN yum install -y unzip && \ yum clean all FROM public.ecr.aws/lambda/python@sha256:f0c3116a56d167eba8021a5d7c595f969835fbe78826303326f80de00d044733 -RUN yum install atk cups-libs gtk3 libXcomposite alsa-lib \ - libXcursor libXdamage libXext libXi libXrandr libXScrnSaver \ - libXtst pango at-spi2-atk libXt xorg-x11-server-Xvfb \ - xorg-x11-xauth dbus-glib dbus-glib-devel -y && \ +RUN yum install atk-* cups-libs-* gtk3-* libXcomposite-* alsa-lib-* \ + libXcursor-* libXdamage-* libXext-* libXi-* libXrandr-* libXScrnSaver-* \ + libXtst-* pango-* at-spi2-atk-* libXt-* xorg-x11-server-Xvfb-* \ + xorg-x11-xauth-* dbus-glib-* dbus-glib-devel-* -y && \ yum clean all COPY --from=build /opt/chrome-linux64 /opt/chrome COPY --from=build /opt/chromedriver-linux64 /opt/