From bf321cfda41809d93de43b03737271f8a2050766 Mon Sep 17 00:00:00 2001 From: Thomas Durieux <5577568+tdurieux@users.noreply.github.com> Date: Mon, 20 Feb 2023 20:42:42 +0100 Subject: [PATCH] chore: update Dockerfile to reduce the image size (#353) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1186ad6..bd9f6e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND=noninteractive WORKDIR /botamusique RUN apt-get update \ - && apt-get install -y gcc g++ ffmpeg libjpeg-dev libmagic-dev opus-tools zlib1g-dev \ + && apt-get install --no-install-recommends -y gcc g++ ffmpeg libjpeg-dev libmagic-dev opus-tools zlib1g-dev \ && rm -rf /var/lib/apt/lists/* COPY . /botamusique @@ -16,7 +16,7 @@ FROM python:3-slim-bullseye ENV DEBIAN_FRONTEND noninteractive EXPOSE 8181 RUN apt update && \ - apt install -y opus-tools ffmpeg libmagic-dev curl tar && \ + apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \ rm -rf /var/lib/apt/lists/* COPY --from=python-builder /botamusique /botamusique WORKDIR /botamusique