From 27ab3bde67ac9a78c810a3adaf3d40030ad19755 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Fri, 6 Aug 2021 12:20:25 +0100 Subject: [PATCH] Rebuilt to use python:slim instead of buster Reduced footprint of the image to less than a quarter from before. Compatibility with Opus and Numpy still maintained as it is Debian based --- app/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index f54c02f..dc42477 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,7 +1,7 @@ -FROM python:3.9.6-slim -RUN apt-get update -y && apt-get upgrade -y && apt-get install libopus0 -y +FROM python:slim COPY . /usr/src/app WORKDIR /usr/src/app -RUN pip install --upgrade pip -RUN pip install -r requirements.txt +RUN apt-get update -y && apt-get upgrade -y && apt-get install libopus0 -y && \ + pip install --upgrade pip && pip install -r requirements.txt && \ + apt-get autoremove -y CMD python3 -u ./bot.py \ No newline at end of file