Initial commit: Modular personal toolbox with high-fidelity Chinese stroke order tool and CI/CD
Build and Push Docker Image / build (push) Successful in 2m42s

This commit is contained in:
2026-02-23 02:04:11 -08:00
commit 109a4d0df0
21 changed files with 1182 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# --- Build Stage ---
FROM golang:1.25-alpine AS builder
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache git
# Download dependencies
COPY go.mod go.sum ./
RUN go mod download
# Copy source and data
COPY cmd/ ./cmd/
COPY pkg/ ./pkg/
# Build the binary
RUN CGO_ENABLED=0 GOOS=linux go build -o /toolbox cmd/toolbox/main.go
# --- Final Stage ---
FROM alpine:latest
# Basic security & CA certs
RUN apk --no-cache add ca-certificates tzdata
WORKDIR /root/
# Copy binary from builder
COPY --from=builder /toolbox .
# Default environment
ENV PORT=8080
EXPOSE 8080
CMD ["./toolbox"]