FROM intel/intel-optimized-ffmpeg:avx2 as builder LABEL authors="bacon" WORKDIR /app COPY requirements.txt /app RUN apt-get update -qq && \ apt-get install -qq --no-install-recommends python3-pip -y && \ apt-get clean -qq autoclean && \ pip wheel install \ --no-cache-dir -q \ --no-deps --wheel-dir /app/wheels \ -r requirements.txt FROM intel/intel-optimized-ffmpeg:avx2 as runner WORKDIR /app COPY --from=builder /app/wheels /wheels RUN apt-get update -qq && \ apt-get install -qq --no-install-recommends libopus-dev python3-pip -y && \ apt-get clean -qq autoclean && \ pip install --no-cache -q /wheels/* COPY src/ /app ENTRYPOINT ["python3", "bot.py"]