mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-18 18:49:23 +08:00
16 lines
252 B
Docker
16 lines
252 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
|
|
|
|
EXPOSE 27774
|
|
|
|
CMD ["/app/komari-agent"]
|