From d634011d05bba5a75c977fad99a904deb33f8a2d Mon Sep 17 00:00:00 2001 From: bruvv <3063928+bruvv@users.noreply.github.com> Date: Fri, 5 May 2023 11:32:21 +0000 Subject: Optimize dockerfile Please do as much as possible in 1 RUN command. This is how it is intended. (Docker BP) --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ac667fb..a6ebc5bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,7 @@ FROM python:3.11 as builder WORKDIR /usr/app ENV PATH="/usr/app/venv/bin:$PATH" -#RUN apt-get update && apt-get install -y git -RUN apt-get update -RUN apt-get install ffmpeg -y #issue 445 +RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/* RUN mkdir -p /usr/app RUN python -m venv ./venv -- cgit v1.2.3