Update architecture

This commit is contained in:
2026-02-09 13:36:34 +07:00
parent 262b50ae7d
commit d3b60c5a45
3 changed files with 1409 additions and 19 deletions
+2 -3
View File
@@ -6,7 +6,7 @@ WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY main.go ./
COPY main.go index.html favicon.ico ./
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o nats-ui main.go
# Runtime stage
@@ -17,8 +17,7 @@ RUN apk --no-cache add ca-certificates tzdata && \
WORKDIR /app
COPY --from=builder /app/nats-ui .
COPY index.html ./
COPY --from=builder /app/nats-ui ./
# config.yaml is in .gitignore; create default in image (override via volume at runtime)
RUN printf '%s\n' \