From 1f8e0e82e981a7c14a452e384c8bc0df1f7edb13 Mon Sep 17 00:00:00 2001 From: Caio <117518+caiosba@users.noreply.github.com> Date: Mon, 18 Sep 2023 13:11:21 -0300 Subject: [PATCH] Trying to fix the Dockerfile, take 3 --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 599209d..7c852bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,8 @@ EXPOSE ${PRESTO_PORT} WORKDIR /app ENV DEBIAN_FRONTEND=noninteractive -# Trying to avoid this error on CI: -# E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true' -RUN mkdir -p /var/cache/apt/archives/partial -RUN apt-get update -qq && apt-get install -y --no-install-recommends ffmpeg cmake swig libavcodec-dev libavformat-dev git +RUN apt update +RUN apt install -y --no-install-recommends ffmpeg cmake swig libavcodec-dev libavformat-dev git RUN ln -s /usr/bin/ffmpeg /usr/local/bin/ffmpeg COPY ./threatexchange /app/threatexchange