Skip to content

Commit

Permalink
Added latest versions of yum packages to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
waseem-polus committed Dec 1, 2023
1 parent dc860ec commit d5a6170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions scrapers/.hadolint.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions scrapers/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
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/ && \
unzip /tmp/chrome-linux64.zip -d /opt/ && \
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/
Expand Down

0 comments on commit d5a6170

Please sign in to comment.