From e9eae266617dbe449003cce55770a2b1e08d512c Mon Sep 17 00:00:00 2001 From: Adrien Date: Mon, 8 Mar 2021 08:07:31 -0500 Subject: [PATCH] Update 'Dockerfile' --- Dockerfile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a5fc41c..69630a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,16 @@ FROM ubuntu:20.04 -COPY run.sh requirements.txt testwatermark.jpg /app/ -COPY lazyleech /app/lazyleech/ -RUN apt update && apt install -y --no-install-recommends python3 python3-pip ffmpeg aria2 file && rm -rf /var/lib/apt/lists/* +RUN mkdir ./app +RUN chmod 777 ./app +WORKDIR ./app + +RUN apt -qq update + + +RUN apt -qq install -y git aria2 wget curl busybox unzip unrar tar python3 ffmpeg python3-pip file RUN pip3 install -r /app/requirements.txt -CMD ["sh" "/app/run.sh"] \ No newline at end of file +COPY requirements.txt . +RUN pip3 install --no-cache-dir -r requirements.txt +COPY . . +CMD ["bash","run.sh"] \ No newline at end of file