feat: add Dockerfile.custom for Debian-based runner image
This commit is contained in:
17
Dockerfile.custom
Normal file
17
Dockerfile.custom
Normal 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"]
|
||||||
Reference in New Issue
Block a user