migrate to python 3.11

This commit is contained in:
Alberto Xamin 2023-01-23 10:38:03 +00:00
parent 9be6b0f387
commit 7e7483c10b
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}

View File

@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
python-version: [3.11]
defaults:
run:
working-directory: ./backend

View File

@ -5,14 +5,14 @@ RUN npm install
RUN npm run build
# now we should have a dist folder containing the static website
FROM python:3.7.10-stretch as pybuilder
FROM python:3.11.1-bullseye as pybuilder
WORKDIR /code
COPY ./backend /code/
RUN pip install --user -r requirements.txt
# We get the dependencies with the full python image so we can compile the one with missing binaries
ENV UseRobots=false
FROM python:3.7.10-slim-stretch as app
FROM python:3.11.1-slim-bullseye as app
# copy the dependencies from the pybuilder
COPY --from=pybuilder /root/.local /root/.local
# copy the backend python files from the pybuilder