|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
# Use the official Python 3.11 image from the Docker Hub
|
|
|
|
|
FROM python:3.11-slim as builder
|
|
|
|
|
FROM python:3.13-slim as builder
|
|
|
|
|
|
|
|
|
|
# Install Poetry
|
|
|
|
|
RUN pip install poetry
|
|
|
|
|
@ -20,14 +20,13 @@ COPY pyproject.toml poetry.lock ./
|
|
|
|
|
RUN poetry install --no-root
|
|
|
|
|
|
|
|
|
|
# Use a new slim image for the runtime
|
|
|
|
|
FROM python:3.11-slim as runtime
|
|
|
|
|
FROM python:3.13-slim as runtime
|
|
|
|
|
|
|
|
|
|
# Install necessary tools for running the app, including `make`
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
|
make \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
RUN apt-get install tk-dev python3-tk
|
|
|
|
|
|
|
|
|
|
# Set environment variables for Poetry
|
|
|
|
|
ENV POETRY_VIRTUALENVS_IN_PROJECT=1 \
|
|
|
|
|
|