removing git, apt autoremove, and useless pip upgrade
move pip install above apt install
This commit is contained in:
parent
b168700eaf
commit
9fab19c0b4
1 changed files with 3 additions and 5 deletions
|
@ -1,13 +1,11 @@
|
|||
FROM python:3.8.6-slim
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y --no-install-recommends ffmpeg git && \
|
||||
apt autoremove
|
||||
RUN /usr/local/bin/python -m pip install --upgrade pip
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y --no-install-recommends ffmpeg
|
||||
|
||||
COPY src .
|
||||
|
||||
CMD [ "python", "-u", "./main.py" ]
|
||||
|
|
Reference in a new issue