feat(py upgrade):

This commit is contained in:
Alexander Myasoedov
2026-05-14 18:56:24 +03:00
parent 46ec775266
commit a0b2b9ec70
14 changed files with 681 additions and 558 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
# Build stage
FROM python:3.11-slim AS builder
FROM python:3.12-slim AS builder
WORKDIR /app
@@ -26,7 +26,7 @@ RUN pip install --upgrade pip setuptools wheel
RUN pip install --no-cache-dir -r requirements.txt
# Runtime stage
FROM python:3.11-slim
FROM python:3.12-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
@@ -35,7 +35,7 @@ ENV PYTHONUNBUFFERED=1
WORKDIR /app
# Copy only the necessary files from the builder stage
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY --from=builder /usr/local/bin /usr/local/bin
# Copy application code