fix pyhton ver

main
Cizz22 5 months ago
parent 6b3462a1c1
commit f8d117e74d

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

Loading…
Cancel
Save