From 64aff5d041e8ccca53c1b5487477bfbd79077931 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Thu, 13 Jun 2024 16:06:00 +0700 Subject: [PATCH] [core] fix Dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe6b9de3..74685395 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,9 @@ ARG USE_BROWSER=chromium RUN echo "USE_BROWSER=$USE_BROWSER" +# Install ffmpeg to generate previews for videos +RUN apt-get update && apt-get install -y ffmpeg --no-install-recommends && rm -rf /var/lib/apt/lists/* + # Install fonts if using either chromium or chrome RUN if [ "$USE_BROWSER" = "chromium" ] || [ "$USE_BROWSER" = "chrome" ]; then \ apt-get update \ @@ -62,10 +65,7 @@ RUN if [ "$USE_BROWSER" = "chrome" ]; then \ && apt install -y /tmp/chrome.deb \ && rm /tmp/chrome.deb \ && rm -rf /var/lib/apt/lists/*; \ - fi \ - -# Install ffmpeg to generate previews for videos -RUN apt-get update && apt-get install -y ffmpeg --no-install-recommends && rm -rf /var/lib/apt/lists/* + fi # Attach sources, install packages WORKDIR /app