feat: add Dockerfile.custom for Debian-based runner image

This commit is contained in:
ldc_
2026-02-02 15:32:18 +08:00
parent 9d0b60643c
commit c7dfd1c149

17
Dockerfile.custom Normal file
View File

@@ -0,0 +1,17 @@
FROM debian:bookworm-slim
# 安装必要的工具
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git && rm -rf /var/lib/apt/lists/*
# 复制自定义编译的 act_runner
# 注意:构建前需要先确保当前目录下有编译好的 act_runner 二进制文件
COPY act_runner /usr/local/bin/act_runner
RUN chmod +x /usr/local/bin/act_runner
# 创建数据目录
RUN mkdir -p /data/cache
WORKDIR /data
ENTRYPOINT ["/usr/local/bin/act_runner"]
CMD ["daemon", "--config", "/config.yaml"]