Skip to content

Commit 9aa9634

Browse files
authored
fix(ci): switch back to alpine (#1430)
Signed-off-by: Jan Pokorný <[email protected]>
1 parent c630963 commit 9aa9634

File tree

14 files changed

+957
-972
lines changed

14 files changed

+957
-972
lines changed

agents/chat/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
FROM python:3.13-slim-bookworm AS builder
2-
RUN apt-get update && apt-get install -y build-essential
1+
FROM python:3.13-alpine3.22
2+
ARG RELEASE_VERSION="main"
33
COPY ./agents/chat/ /app/agents/chat
44
COPY ./apps/agentstack-sdk-py/ /app/apps/agentstack-sdk-py/
55
WORKDIR /app/agents/chat
66
RUN --mount=type=cache,target=/tmp/.cache/uv \
77
--mount=type=bind,from=ghcr.io/astral-sh/uv:0.9.5,source=/uv,target=/bin/uv \
88
UV_COMPILE_BYTECODE=1 HOME=/tmp uv sync
9-
10-
FROM python:3.13-slim-bookworm
11-
ARG RELEASE_VERSION="main"
12-
COPY --from=builder /app /app
139
ENV PRODUCTION_MODE=True \
1410
RELEASE_VERSION=${RELEASE_VERSION}
1511
CMD ["/app/agents/chat/.venv/bin/server"]

agents/chat/pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ authors = [
77
]
88
requires-python = ">=3.13,<3.14"
99
dependencies = [
10-
"beeai-framework[duckduckgo,wikipedia]>=0.1.58",
10+
"beeai-framework[duckduckgo,wikipedia]>=0.1.60",
11+
"tiktoken>=0.12.0", # constraint for beeai-framework dependency (first version with musl arm64 wheel)
12+
"fastuuid>=0.14.0", # constraint for beeai-framework dependency (first version with musl arm64 wheel)
1113
"openai>=1.107.1",
1214
"agentstack-sdk",
1315
"openinference-instrumentation-beeai>=0.1.12",
@@ -25,10 +27,8 @@ agentstack-sdk = { path = "../../apps/agentstack-sdk-py", editable = true }
2527
server = "chat.agent:serve"
2628

2729
[build-system]
28-
requires = [
29-
"hatchling",
30-
]
31-
build-backend = "hatchling.build"
30+
requires = ["uv_build>=0.9.0,<0.10.0"]
31+
build-backend = "uv_build"
3232

3333
[dependency-groups]
3434
dev = [

agents/chat/uv.lock

Lines changed: 38 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

agents/form/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
FROM python:3.13-slim-bookworm AS builder
2-
RUN apt-get update && apt-get install -y build-essential
1+
FROM python:3.13-alpine3.22
2+
ARG RELEASE_VERSION="main"
33
COPY ./agents/form/ /app/agents/form
44
COPY ./apps/agentstack-sdk-py/ /app/apps/agentstack-sdk-py/
55
WORKDIR /app/agents/form
66
RUN --mount=type=cache,target=/tmp/.cache/uv \
77
--mount=type=bind,from=ghcr.io/astral-sh/uv:0.9.5,source=/uv,target=/bin/uv \
88
UV_COMPILE_BYTECODE=1 HOME=/tmp uv sync
9-
10-
FROM python:3.13-slim-bookworm
11-
ARG RELEASE_VERSION="main"
12-
COPY --from=builder /app /app
139
ENV PRODUCTION_MODE=True \
1410
RELEASE_VERSION=${RELEASE_VERSION}
1511
CMD ["/app/agents/form/.venv/bin/server"]

agents/form/pyproject.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ authors = [
77
]
88
requires-python = ">=3.13,<3.14"
99
dependencies = [
10-
"beeai-framework[duckduckgo,wikipedia]>=0.1.58",
11-
"openai==1.99.9",
1210
"agentstack-sdk",
13-
"openinference-instrumentation-beeai>=0.1.12",
11+
"openinference-instrumentation-beeai>=0.1.13",
1412
"pydantic-settings>=2.9.0",
1513
"uvicorn>=0.35.0",
1614
]
@@ -25,10 +23,8 @@ agentstack-sdk = { path = "../../apps/agentstack-sdk-py", editable = true }
2523
server = "form.agent:serve"
2624

2725
[build-system]
28-
requires = [
29-
"hatchling",
30-
]
31-
build-backend = "hatchling.build"
26+
requires = ["uv_build>=0.9.0,<0.10.0"]
27+
build-backend = "uv_build"
3228

3329
[dependency-groups]
3430
dev = [

0 commit comments

Comments
 (0)