Skip to content

Commit d634011

Browse files
authored
Optimize dockerfile
Please do as much as possible in 1 RUN command. This is how it is intended. (Docker BP)
1 parent 4825a84 commit d634011

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ FROM python:3.11 as builder
33
WORKDIR /usr/app
44
ENV PATH="/usr/app/venv/bin:$PATH"
55

6-
#RUN apt-get update && apt-get install -y git
7-
RUN apt-get update
8-
RUN apt-get install ffmpeg -y #issue 445
6+
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/*
97

108
RUN mkdir -p /usr/app
119
RUN python -m venv ./venv

0 commit comments

Comments
 (0)