mirror of
https://github.com/komari-monitor/komari.git
synced 2026-11-11 08:42:39 +00:00
20 lines
355 B
Docker
20 lines
355 B
Docker
FROM alpine:3.21
|
|
|
|
WORKDIR /app
|
|
|
|
# Docker buildx 会在构建时自动填充这些变量
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
RUN apk add --no-cache ca-certificates curl tzdata
|
|
|
|
COPY --chmod=755 komari-${TARGETOS}-${TARGETARCH} /app/komari
|
|
|
|
ENV GIN_MODE=release
|
|
ENV KOMARI_LISTEN=0.0.0.0:25774
|
|
ENV GODEBUG=disablethp=1
|
|
|
|
EXPOSE 25774
|
|
|
|
CMD ["/app/komari", "server"]
|