From 2210ec8f870a535d8523bf41a158b585d466401d Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Wed, 27 Mar 2024 13:28:46 +0100 Subject: [PATCH] chore(api/dockerfile): optimize caching --- api/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index ec4e7c46..22b8a38e 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -10,8 +10,6 @@ FROM base AS build WORKDIR /app -COPY . ./ - ENV PYTHONFAULTHANDLER=1 \ PYTHONHASHSEED=random \ PYTHONDONTWRITEBYTECODE=1 \ @@ -24,6 +22,8 @@ ENV PYTHONFAULTHANDLER=1 \ RUN pip install -U poetry +COPY . ./ + FROM build as build-prod WORKDIR /app