Files
discord_bot/Dockerfile
2024-03-21 21:04:00 +03:00

25 lines
696 B
Docker

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"]