2026-04-16 04:36:09 +08:00
|
|
|
FROM golang:1.26-alpine AS builder
|
feat: initial release v0.3.0
- Support 9 chart types: line, bar, pie, scatter, bubble, donut, mixed, polar, radar
- Multi-format output: ANSI, SVG, PNG, Markdown
- Go + Fiber + gonum/plot
- Docker support
- Morandi color palette
2026-04-16 04:33:02 +08:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2026-04-16 04:36:09 +08:00
|
|
|
# 设置 Alpine 国内镜像源
|
|
|
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
|
|
|
|
|
feat: initial release v0.3.0
- Support 9 chart types: line, bar, pie, scatter, bubble, donut, mixed, polar, radar
- Multi-format output: ANSI, SVG, PNG, Markdown
- Go + Fiber + gonum/plot
- Docker support
- Morandi color palette
2026-04-16 04:33:02 +08:00
|
|
|
RUN apk add --no-cache gcc musl-dev
|
|
|
|
|
|
|
|
|
|
COPY go.mod go.sum ./
|
2026-04-16 04:49:04 +08:00
|
|
|
|
|
|
|
|
# 设置 Go 国内镜像源(多备用源)
|
|
|
|
|
RUN go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct && \
|
|
|
|
|
go env -w GOSUMDB=off && \
|
|
|
|
|
go mod download
|
feat: initial release v0.3.0
- Support 9 chart types: line, bar, pie, scatter, bubble, donut, mixed, polar, radar
- Multi-format output: ANSI, SVG, PNG, Markdown
- Go + Fiber + gonum/plot
- Docker support
- Morandi color palette
2026-04-16 04:33:02 +08:00
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o server ./cmd/server
|
|
|
|
|
|
2026-04-16 04:36:09 +08:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
|
|
# 设置 Alpine 国内镜像源
|
|
|
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
feat: initial release v0.3.0
- Support 9 chart types: line, bar, pie, scatter, bubble, donut, mixed, polar, radar
- Multi-format output: ANSI, SVG, PNG, Markdown
- Go + Fiber + gonum/plot
- Docker support
- Morandi color palette
2026-04-16 04:33:02 +08:00
|
|
|
|
|
|
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
COPY --from=builder /app/server .
|
|
|
|
|
|
|
|
|
|
EXPOSE 3100
|
|
|
|
|
|
|
|
|
|
CMD ["./server"]
|