chore: update Dockerfile to reduce the image size (#353)

This commit is contained in:
Thomas Durieux
2023-02-20 20:42:42 +01:00
committed by GitHub
parent eb4c63db89
commit bf321cfda4

View File

@ -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