From 9fab19c0b4defaafd8156232602b9e5b61360f6f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 20 Mar 2021 00:35:43 +0100 Subject: [PATCH] removing git, apt autoremove, and useless pip upgrade move pip install above apt install --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f0f76d..0a2f7ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ]