From 0d9810be6ac3897f808780921453b4ef42ed5d72 Mon Sep 17 00:00:00 2001 From: Matthew Chellew Date: Mon, 23 Oct 2023 14:35:11 +0300 Subject: [PATCH] Update Dockerfile with requirements caching --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8be2e1d..1c20663 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ FROM ubuntu:latest +WORKDIR /subgen + RUN apt-get update && apt-get -y install python3 python3-pip -ADD https://raw.githubusercontent.com/McCloudS/subgen/main/subgen/subgen.py /subgen/subgen.py +RUN pip install -r requirements.txt ENTRYPOINT ["python3"] CMD ["/subgen/subgen.py"]