From da751865e0378b51f0e3d50920b7c9694657f834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sp=C3=B6ttel?= <1682504+fspoettel@users.noreply.github.com> Date: Wed, 28 Jun 2023 11:25:01 +0200 Subject: [PATCH] feat: python 3.11 --- .github/workflows/ci.yml | 4 ++-- README.md | 1 + web.Dockerfile | 4 ++-- worker.Dockerfile | 4 ++-- worker.gpu.Dockerfile | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f88e52..3c55828 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' cache: 'pip' cache-dependency-path: '**/pyproject.toml' - run: pip install -e .[web,tooling] @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' cache: 'pip' cache-dependency-path: '**/pyproject.toml' - run: pip install -e .[web,tooling] diff --git a/README.md b/README.md index e503bfc..e7fcf4f 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ This project is intended to be run via [docker compose](https://docs.docker.com/ ### 2. Configure service 2. Create an `.env` file from `.env.example` and configure it: + - `API_SECRET`: the API key used to authenticate against the API. - `WHISPER_MODEL`: the whisper model size you want to use. - `TRAEFIK_DOMAIN`: the domain you want to access the service from. Its A records need to point to the host IP. diff --git a/web.Dockerfile b/web.Dockerfile index b165dcf..3f55f37 100644 --- a/web.Dockerfile +++ b/web.Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim as python-build +FROM python:3.11-slim as python-build WORKDIR /etc/whisperbox-transcribe @@ -8,7 +8,7 @@ RUN python -m venv /opt/venv && \ /opt/venv/bin/pip install -U pip wheel && \ /opt/venv/bin/pip install -U .[web] -FROM python:3.10-slim as python-deploy +FROM python:3.11-slim as python-deploy WORKDIR /etc/whisperbox-transcribe diff --git a/worker.Dockerfile b/worker.Dockerfile index 02ceee1..d20d19e 100644 --- a/worker.Dockerfile +++ b/worker.Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim AS python-build +FROM python:3.11-slim AS python-build WORKDIR /etc/whisperbox-transcribe @@ -9,7 +9,7 @@ RUN python -m venv /opt/venv && \ /opt/venv/bin/pip install -U pip wheel && \ /opt/venv/bin/pip install -U .[worker] -FROM python:3.10-slim as python-deploy +FROM python:3.11-slim as python-deploy ARG WHISPER_MODEL diff --git a/worker.gpu.Dockerfile b/worker.gpu.Dockerfile index 022e0c7..37000de 100644 --- a/worker.gpu.Dockerfile +++ b/worker.gpu.Dockerfile @@ -1,7 +1,7 @@ # TODO: clean up FROM nvidia/cuda:11.8.0-base-ubuntu22.04 AS python-deploy -ENV PYTHON_VERSION=3.10 +ENV PYTHON_VERSION=3.11 ARG WHISPER_MODEL