chore: update Dockerfile to reduce the image size (#353)
This commit is contained in:
@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
WORKDIR /botamusique
|
WORKDIR /botamusique
|
||||||
|
|
||||||
RUN apt-get update \
|
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/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY . /botamusique
|
COPY . /botamusique
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ FROM python:3-slim-bullseye
|
|||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
EXPOSE 8181
|
EXPOSE 8181
|
||||||
RUN apt update && \
|
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/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=python-builder /botamusique /botamusique
|
COPY --from=python-builder /botamusique /botamusique
|
||||||
WORKDIR /botamusique
|
WORKDIR /botamusique
|
||||||
|
Reference in New Issue
Block a user