Skip to content

Commit 33dd4d7

Browse files
authored
feat(beeai-server): switch to ubi (#1369)
1 parent 6423995 commit 33dd4d7

File tree

3 files changed

+341
-474
lines changed

3 files changed

+341
-474
lines changed

apps/beeai-server/Dockerfile

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
FROM python:3.13-alpine3.21 AS builder
2-
ENV UV_COMPILE_BYTECODE=1 \
3-
HOME="/tmp" \
4-
AGENT_REGISTRY__LOCATIONS__FILE="file:///app/registry.yaml"
5-
RUN --mount=type=cache,target=/tmp/.cache/uv \
6-
--mount=type=bind,source=dist/requirements.txt,target=/requirements.txt \
7-
--mount=type=bind,from=ghcr.io/astral-sh/uv:0.9.5,source=/uv,target=/bin/uv \
8-
uv pip install --system -r /requirements.txt
9-
RUN --mount=type=cache,target=/tmp/.cache/uv \
10-
--mount=type=bind,source=dist,target=/dist \
11-
--mount=type=bind,from=ghcr.io/astral-sh/uv:0.9.5,source=/uv,target=/bin/uv \
12-
uv pip install --system /dist/*.tar.gz
1+
FROM registry.access.redhat.com/ubi9/python-312
2+
ENV AGENT_REGISTRY__LOCATIONS__FILE="file:///app/registry.yaml"
3+
RUN --mount=type=bind,source=dist/requirements.txt,target=requirements.txt \
4+
pip install -r requirements.txt
5+
RUN --mount=type=bind,source=dist,target=dist \
6+
pip install dist/*.tar.gz
137
CMD ["beeai-server"]

apps/beeai-server/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.3.7"
44
description = "BeeAI server"
55
readme = "README.md"
66
authors = [{ name = "IBM Corp." }]
7-
requires-python = ">=3.13,<3.14"
7+
requires-python = "==3.12.*"
88
dependencies = [
99
"a2a-sdk~=0.3.5",
1010
"aiohttp>=3.11.11",
@@ -42,6 +42,7 @@ dependencies = [
4242
"openai>=1.97.0",
4343
"authlib>=1.6.4",
4444
"async-lru>=2.0.5",
45+
"exceptiongroup>=1.3.0",
4546
]
4647

4748
[dependency-groups]

0 commit comments

Comments
 (0)