diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index c9bdf81..cc262c4 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -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 }} diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index 3f93692..e8d6ec4 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7] + python-version: [3.11] defaults: run: working-directory: ./backend diff --git a/Dockerfile b/Dockerfile index c1ce59e..040fc38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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