ci: Docker 镜像构建

This commit is contained in:
Akizon77
2025-07-21 06:36:15 +00:00
parent a984adc56d
commit dfd758bde4
2 changed files with 93 additions and 0 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
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"]