Skip to content

Commit

Permalink
[core] fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
devlikepro committed Jun 13, 2024
1 parent 87b24e3 commit 64aff5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 64aff5d

Please sign in to comment.