Optimize dockerfile

Please do as much as possible in 1 RUN command. This is how it is intended. (Docker BP)
pull/468/head
bruvv 1 year ago committed by GitHub
parent 4825a84572
commit d634011d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save