Skip to content

Commit

Permalink
Optimize dockerfile
Browse files Browse the repository at this point in the history
Please do as much as possible in 1 RUN command. This is how it is intended. (Docker BP)
  • Loading branch information
bruvv committed May 5, 2023
1 parent 4825a84 commit d634011
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d634011

Please sign in to comment.