docker
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -3,11 +3,11 @@ LABEL authors="bacon"
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt /app
|
||||
RUN apt-get update \
|
||||
&& apt-get --no-install-recommends install ffmpeg -y \
|
||||
&& apt-get clean autoclean \
|
||||
RUN apt-get update -qq \
|
||||
&& apt-get -qq --no-install-recommends install ffmpeg -y \
|
||||
&& apt-get clean autoclean -qq \
|
||||
&&pip wheel install \
|
||||
--no-cache-dir \
|
||||
--no-cache-dir -q \
|
||||
--no-deps --wheel-dir /app/wheels \
|
||||
-r requirements.txt
|
||||
|
||||
@@ -16,7 +16,7 @@ WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/wheels /wheels
|
||||
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
|
||||
ENTRYPOINT ["python", "bot.py"]
|
||||
|
||||
Reference in New Issue
Block a user