From f53e2c065c8efde2c3b11270f3c2a504bd01db7a Mon Sep 17 00:00:00 2001 From: Tycho Bellers Date: Wed, 18 Oct 2023 21:33:35 -0700 Subject: [PATCH] update Dockerfile --- bot/Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bot/Dockerfile b/bot/Dockerfile index 17f6ab9..7f675e7 100644 --- a/bot/Dockerfile +++ b/bot/Dockerfile @@ -7,10 +7,16 @@ COPY ./requirements.txt . COPY ./setup.py . # Install ffmpeg -RUN apt-get update && apt-get install -y ffmpeg +RUN apt-get update \ + && apt-get install -y ffmpeg \ + && rm -rf /var/lib/apt/lists/* -# Install requirements -RUN pip install -r requirements.txt +# Install build dependencies and requirements +RUN apt-get update \ + && apt-get install -y --no-install-recommends gcc \ + && rm -rf /var/lib/apt/lists/* \ + && pip install -r requirements.txt \ + && apt-get purge -y --auto-remove gcc # Install app RUN pip install .