mirror of
https://github.com/fankes/komari-agent.git
synced 2025-12-11 07:53:38 +08:00
ci: Docker 镜像构建
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user