diff --git a/Dockerfile b/Dockerfile index 3fdab1f..8bbfe2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build stage -FROM python:3.13-slim as builder +FROM python:3.14-slim as builder WORKDIR /app @@ -19,7 +19,7 @@ COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Runtime stage -FROM python:3.13-slim +FROM python:3.14-slim WORKDIR /app @@ -39,8 +39,8 @@ RUN groupadd -r -g 1000 appgroup \ && mkdir -p /app/instance \ && chown -R appuser:appgroup /app -# Copy installed packages from builder stage -COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages +# Copy installed packages from builder stage (version-agnostic) +COPY --from=builder /usr/local/lib/ /usr/local/lib/ COPY --from=builder /usr/local/bin /usr/local/bin # Copy application files and set ownership diff --git a/requirements.txt b/requirements.txt index a50dac9..d97db2d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,5 +11,5 @@ Werkzeug==3.1.3 requests==2.32.5 # Database drivers -psycopg[binary,pool]==3.2.3 -PyMySQL==1.1.1 +psycopg[binary,pool]==3.2.10 +PyMySQL==1.1.2 \ No newline at end of file