From 423c5e60e2f7ae37f3543ad0747bc038d97c73f5 Mon Sep 17 00:00:00 2001 From: TatLead Date: Wed, 13 Mar 2024 07:48:34 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index beb9b57..567f61a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,7 @@ -# Stage 1: Use python:3.12 to install dependencies -FROM python:3.12 as builder +FROM python:3.12 WORKDIR /app -RUN python -m venv /opt/venv -ENV PATH="/opt/venv/bin:$PATH" - -RUN pip install psutil - -# Stage 2: Use python:3.12-alpine and copy installed dependencies from builder stage -FROM python:3.12-alpine - -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