docker bush ended

This commit is contained in:
bacon
2024-03-22 01:07:29 +03:00
parent 62a8921e10
commit 37eef98e20
5 changed files with 24 additions and 16 deletions

View File

@@ -1,24 +1,22 @@
FROM intel/intel-optimized-ffmpeg:avx2 as builder
FROM python:3.12.2-slim-bookworm 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 \
RUN pip wheel install \
--no-cache-dir -q \
--no-deps --wheel-dir /app/wheels \
-r requirements.txt
FROM intel/intel-optimized-ffmpeg:avx2 as runner
FROM python:3.12.2-slim-bookworm 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 install -qq --no-install-recommends ffmpeg -y && \
apt-get clean -qq autoclean && \
pip install --no-cache -q /wheels/*
COPY src/ /app
ENTRYPOINT ["python3", "bot.py"]
ENTRYPOINT ["python", "bot.py"]
#ENTRYPOINT ["ffmpeg"]