mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Go 1.26.10 and 1.27.3 make crypto/x509 reject chains that pass through the compromised eMudhra intermediate CAs. Go 1.25 has no backport, so binaries built from go.mod 1.25.5 would still trust forged certificates from those intermediates on systems whose trust store has not been updated. skillshare makes HTTPS requests for upgrade, update checks, search and registry lookups, so release binaries need the fix. Move go.mod, mise.toml, the three Docker images and the sandbox docs to 1.26.10. CI and release builds follow go.mod through go-version-file.
24 lines
827 B
Docker
24 lines
827 B
Docker
# CI Dockerfile — minimal image for skill validation in pipelines
|
|
# Usage: docker run ghcr.io/<org>/skillshare-ci audit /path/to/skills
|
|
# Build: docker build -f docker/ci/Dockerfile -t skillshare-ci .
|
|
|
|
# Stage 1: Build Go binary
|
|
ARG GO_VERSION=1.26.10
|
|
FROM golang:${GO_VERSION}-bookworm AS go-builder
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
ARG TARGETARCH=amd64
|
|
ARG VERSION=dev
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} \
|
|
go build -trimpath -ldflags="-s -w -X main.version=${VERSION}" -o /skillshare ./cmd/skillshare
|
|
|
|
# Stage 2: Minimal CI runtime
|
|
FROM debian:bookworm-slim
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git ca-certificates && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
COPY --from=go-builder /skillshare /usr/local/bin/skillshare
|
|
ENTRYPOINT ["skillshare"]
|