From 4f5db8f9ff278f5a433ade47b734ff3c2ff37b77 Mon Sep 17 00:00:00 2001 From: CGDogan <126820728+CGDogan@users.noreply.github.com> Date: Mon, 14 Aug 2023 20:12:08 +0100 Subject: [PATCH] Cache pip result --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 28ee027..4461099 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,12 +69,11 @@ ENV FLASK_ENV development RUN mkdir -p /images/uploading -COPY ./ ./ - -RUN cp test_imgs/* /images/ - +COPY requirements.txt . RUN pip3 install -r requirements.txt --break-system-packages +COPY ./ ./ +RUN cp test_imgs/* /images/ EXPOSE 4000 EXPOSE 4001