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