From 31f0c8e6b298847b7574089df16cf4326146d593 Mon Sep 17 00:00:00 2001 From: lzzy12 Date: Thu, 31 Oct 2019 11:46:50 +0530 Subject: [PATCH] Improved Dockerfile Signed-off-by: lzzy12 --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2cf65f6..9d9b26a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,11 @@ FROM python:3.8-slim-buster -RUN mkdir /bot -RUN chmod 777 /bot -COPY . /bot -WORKDIR /bot +WORKDIR /usr/src/app +COPY . . +RUN pip install --no-cache-dir -r requirements.txt RUN apt-get update RUN apt-get install -y aria2 -RUN pip install -r /bot/requirements.txt CMD ["bash","start.sh"] \ No newline at end of file