fixing the docker to use python 3.11

This commit is contained in:
Khalim Conn-Kowlessar 2024-10-22 10:13:53 +01:00
parent d80f0b8fd2
commit 47c9f26260
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
# Pull base image
FROM python:3.10.12-slim-buster as build-image
FROM python:3.11.10-slim-bullseye as build-image
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1

View file

@ -1,5 +1,5 @@
# Pull base image
FROM python:3.10.12-slim-buster as build-image
FROM python:3.11.10-slim-bullseye as build-image
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
@ -24,7 +24,7 @@ RUN pip install --upgrade pip \
RUN pip install awslambdaric
# Second stage: "runtime-image"
FROM python:3.10.12-slim-buster
FROM python:3.11.10-slim-bullseye
# Create the extensions directory to avoid warnings with RIE
RUN mkdir -p /opt/extensions
@ -33,7 +33,7 @@ RUN mkdir -p /opt/extensions
WORKDIR /var/task/Model
# Copy the python dependencies from the build-image
COPY --from=build-image /usr/local/lib/python3.10/site-packages/ /usr/local/lib/python3.10/site-packages/
COPY --from=build-image /usr/local/lib/python3.11/site-packages/ /usr/local/lib/python3.11/site-packages/
# Copy project files
COPY ./backend/ ./backend