mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-18 02:29:22 +08:00
19 lines
416 B
Docker
19 lines
416 B
Docker
FROM alpine:3.21
|
|
|
|
WORKDIR /app
|
|
|
|
# Docker buildx 会在构建时自动填充这些变量
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
COPY komari-agent-${TARGETOS}-${TARGETARCH} /app/komari-agent
|
|
|
|
RUN chmod +x /app/komari-agent
|
|
|
|
RUN touch /.komari-agent-container
|
|
|
|
ENTRYPOINT ["/app/komari-agent"]
|
|
# 运行时请指定参数
|
|
# Please specify parameters at runtime.
|
|
# eg: docker run komari-agent -e example.com -t token
|
|
CMD ["--help"] |