Skip to content

Commit a6cf2d7

Browse files
committed
Add new image
1 parent c16f0bc commit a6cf2d7

4 files changed

Lines changed: 35 additions & 10 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
- name: login registry
1313
run: echo ${{secrets.DOCKER_HUB_PASSWORD}} | docker login -u wizawu --password-stdin
1414

15-
- name: build proxy image
16-
run: echo docker build docker/proxy -t wizawu/proxy:latest
15+
- name: build agent image
16+
run: docker build docker/agent -t wizawu/agent:latest
1717

18-
- name: push proxy image
19-
run: echo docker push wizawu/proxy:latest
18+
- name: push agent image
19+
run: docker push wizawu/agent:latest

bin/agent

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
test -n "$1"
5+
6+
WORKSPACE=$(cd $1 && pwd)
7+
8+
docker run --rm -it \
9+
--user $(id -u):$(id -g) \
10+
-v /etc/passwd:/etc/passwd:ro \
11+
-v /etc/group:/etc/group:ro \
12+
-v /home/wizawu/.kimi:/root/.kimi \
13+
-v $WORKSPACE:$WORKSPACE \
14+
-w $WORKSPACE \
15+
wizawu/agent:latest kimi

bin/drop-caches

Lines changed: 0 additions & 6 deletions
This file was deleted.

docker/agent/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM ubuntu:25.10
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update -qq && \
6+
apt-get install -y --no-install-recommends \
7+
python3.13 \
8+
python3-pip \
9+
ca-certificates \
10+
curl \
11+
git \
12+
&& \
13+
apt-get clean && \
14+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
15+
16+
RUN pip install --break-system-packages --no-cache-dir kimi-cli==1.12.0

0 commit comments

Comments
 (0)