From 6957315b63d09eb6923c2ed1e7c5cf57a91a7de4 Mon Sep 17 00:00:00 2001 From: TatLead Date: Wed, 13 Mar 2024 06:57:29 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d4cef3d..92611df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,9 @@ FROM python:3.12 as builder WORKDIR /app +RUN python -m venv venv +ENV PATH="/venv/bin:$PATH" + COPY requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt @@ -11,5 +14,7 @@ FROM python:3.12-alpine WORKDIR /app -COPY --from=builder /usr/local /usr/local +ENV PATH="/venv/bin:$PATH" + +COPY --from=builder venv venv COPY . .