Skip to content

Commit 7322e24

Browse files
authored
Fixup arm64 container builds (#109)
* Fixup * also kubectl
1 parent e93748e commit 7322e24

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

python/Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/astral-sh/uv:0.6.4-debian-slim@sha256:40aaa04efd0074d3f07c6ad6ff922d32d0dea339c5888c1d22d7db0fa3b1e954 AS final
1+
FROM ghcr.io/astral-sh/uv:0.6.5-debian-slim AS final
2+
3+
ARG TARGETARCH
24

35
ENV PYTHONUNBUFFERED=1 \
46
PYTHONDONTWRITEBYTECODE=1 \
@@ -18,12 +20,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1820
RUN uv python install 3.12
1921

2022
# Install kubectl
21-
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
23+
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$TARGETARCH/kubectl" \
2224
&& chmod +x kubectl \
2325
&& mv kubectl /usr/local/bin/
2426

2527
# Install Istio
26-
RUN curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.25.0 TARGET_ARCH=x86_64 sh - \
28+
RUN curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.25.0 TARGET_ARCH=$TARGETARCH sh - \
2729
&& mv istio-1.25.0/bin/istioctl /usr/local/bin/istioctl \
2830
&& rm -rf istio-1.25.0
2931

@@ -66,4 +68,4 @@ EXPOSE 8081
6668
LABEL org.opencontainers.image.source=https://github.com/kagent-dev/kagent
6769
LABEL org.opencontainers.image.description="Kagent app is the apiserver for running agents."
6870

69-
CMD ["uv", "run", "autogenstudio", "ui", "--host", "0.0.0.0", "--port", "8081"]
71+
CMD ["uv", "run", "autogenstudio", "ui", "--host", "0.0.0.0", "--port", "8081"]

ui/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN npm ci
1111
COPY . .
1212
RUN npm run build
1313

14-
FROM ghcr.io/astral-sh/uv:0.6.4-debian-slim@sha256:40aaa04efd0074d3f07c6ad6ff922d32d0dea339c5888c1d22d7db0fa3b1e954 AS final
14+
FROM ghcr.io/astral-sh/uv:0.6.5-debian-slim AS final
1515

1616
RUN apt-get update && apt-get install -y --no-install-recommends \
1717
git \
@@ -61,4 +61,4 @@ EXPOSE 80
6161
LABEL org.opencontainers.image.source=https://github.com/kagent-dev/kagent
6262
LABEL org.opencontainers.image.description="Kagent app is the UI and apiserver for running agents."
6363

64-
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
64+
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

0 commit comments

Comments
 (0)