From 38211e5d582c1aab81d91a2bea32e86a5d93f3a3 Mon Sep 17 00:00:00 2001 From: perillamint Date: Fri, 17 May 2024 01:15:39 +0900 Subject: [PATCH] Make python package install cacheable --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b720a72..ad8287b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,10 @@ RUN apt-get update && apt-get install -y libgl1 && rm -rf /var/lib/apt/lists/* RUN mkdir -p /opt/minya WORKDIR /opt/minya -ADD . /opt/minya +ADD requirements.txt /opt/minya RUN python3 -m pip install -r requirements.txt +ADD . /opt/minya + CMD ["python3", "minya.py"]