Lower Python version

This commit is contained in:
2024-10-30 19:21:42 +01:00
parent 83c917c4ce
commit b27b96ebb5

View File

@ -1,5 +1,5 @@
# Stage 1: Build the requirements.txt using Poetry. # Stage 1: Build the requirements.txt using Poetry.
FROM python:3.13 AS builder FROM python:3.12 AS builder
# Set environment variables for Python. # Set environment variables for Python.
ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONDONTWRITEBYTECODE 1
@ -23,7 +23,7 @@ COPY pyproject.toml poetry.lock /app/
RUN poetry self add poetry-plugin-export && poetry export --format=requirements.txt --output=requirements.txt --only=main --without-hashes RUN poetry self add poetry-plugin-export && poetry export --format=requirements.txt --output=requirements.txt --only=main --without-hashes
# Stage 2: Install dependencies and run the application # Stage 2: Install dependencies and run the application
FROM python:3.13 AS runner FROM python:3.12 AS runner
# Set environment variables for Python. # Set environment variables for Python.
ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONDONTWRITEBYTECODE 1