mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fixing the docker to use python 3.11
This commit is contained in:
parent
d80f0b8fd2
commit
47c9f26260
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue