scc Docker & Self-Hosted Deployment

GitHub

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go

8,503 stars Go Go 1 file ยท ~20,274 tokens #cli#cloc#code#complexity#golang#linux#macos#scc
1. Pull Image (DOCKERHUB) docker pull boyter/scc:latest
2. Docker Run (1-Click Launch) docker run -d --name scc --restart always boyter/scc:latest
3. Podman Run podman run -d --name scc --restart always boyter/scc:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/boyter/scc:latest
5. ORAS Pull (OCI Artifact) oras pull boyter/scc:latest
vendor/github.com/pjbgf/sha1cd/Dockerfile.arm
FROM golang:1.25@sha256:31c1e53dfc1cc2d269deec9c83f58729fa3c53dc9a576f6426109d1e319e9e9a

ENV GOOS=linux
ENV GOARCH=arm
ENV CGO_ENABLED=1
ENV CC=arm-linux-gnueabihf-gcc
ENV PATH="/go/bin/${GOOS}_${GOARCH}:${PATH}"
ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig

RUN dpkg --add-architecture armhf \
    && apt update \
    && apt install -y --no-install-recommends \
        gcc-arm-linux-gnueabihf \
        libc6-dev-armhf-cross \
        pkg-config \
    && rm -rf /var/lib/apt/lists/*

COPY . /src/workdir

WORKDIR /src/workdir

RUN go build ./...