From 25ec093f9b9ff9e47f252ac62217fc1684624507 Mon Sep 17 00:00:00 2001 From: TatLead Date: Wed, 13 Mar 2024 07:39:50 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 062797b..beb9b57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,7 @@ WORKDIR /app RUN python -m venv /opt/venv ENV PATH="/opt/venv/bin:$PATH" -COPY requirements.txt requirements.txt -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install psutil # Stage 2: Use python:3.12-alpine and copy installed dependencies from builder stage FROM python:3.12-alpine @@ -17,4 +16,7 @@ WORKDIR /app COPY --from=builder /opt/venv /opt/venv ENV PATH="/opt/venv/bin:$PATH" +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + COPY . .