From 6b4c638586193c4595c253e825a968a327877a40 Mon Sep 17 00:00:00 2001 From: Cooper Ry Lees Date: Mon, 27 Feb 2023 19:05:27 -0800 Subject: [PATCH] Build Docker image with 3.10 - See if we can build via Python 3.10 - I originally tried pyton3.11 as there are lots of perf wins there but we have build errors - Add CI to build with python3.11 on CI too Test: - Build it - `docker build --build-arg FULL=true -t gpt3discord .` ``` crl-m1:GPT3Discord cooper$ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE gpt3discord latest 6cd5ff57745d 14 seconds ago 1.14GB ``` - This is an aarch64 build too ``` Darwin crl-m1.cooperlees.com 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103 arm64 ``` --- .github/workflows/build.yml | 4 ++-- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 23f0719..11387c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ["3.9"] + python-version: ["3.9", "3.10"] os: [macOS-latest, ubuntu-latest, windows-latest] steps: @@ -28,4 +28,4 @@ jobs: - name: Install deps via requirements + module via pyproject.toml run: | python -m pip install -r requirements.txt - python -m pip install . \ No newline at end of file + python -m pip install . diff --git a/Dockerfile b/Dockerfile index c74b575..c89def1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG PY_VERSION=3.9 +ARG PY_VERSION=3.10 # Build container FROM python:${PY_VERSION} as base