This commit is contained in:
bacon
2024-03-21 18:35:23 +03:00
parent 720cff55c1
commit c8d2f7c344

View File

@@ -3,11 +3,11 @@ LABEL authors="bacon"
WORKDIR /app WORKDIR /app
COPY requirements.txt /app COPY requirements.txt /app
RUN apt-get update \ RUN apt-get update -qq \
&& apt-get --no-install-recommends install ffmpeg -y \ && apt-get -qq --no-install-recommends install ffmpeg -y \
&& apt-get clean autoclean \ && apt-get clean autoclean -qq \
&&pip wheel install \ &&pip wheel install \
--no-cache-dir \ --no-cache-dir -q \
--no-deps --wheel-dir /app/wheels \ --no-deps --wheel-dir /app/wheels \
-r requirements.txt -r requirements.txt
@@ -16,7 +16,7 @@ WORKDIR /app
COPY --from=builder /app/wheels /wheels COPY --from=builder /app/wheels /wheels
COPY --from=builder /usr/bin/ffmpeg /usr/bin/ffmpeg COPY --from=builder /usr/bin/ffmpeg /usr/bin/ffmpeg
RUN pip install --no-cache /wheels/* RUN pip install --no-cache -q /wheels/*
COPY src/ /app COPY src/ /app
ENTRYPOINT ["python", "bot.py"] ENTRYPOINT ["python", "bot.py"]