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 . .