docker
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user