time-service (build)
Published 2026-06-20 19:31:46 +00:00 by kubernetes
Installation
docker pull oci.unbound.se/shiny/time-service:buildsha256:5c2467ef61f4b7c33afa2bdf0bf05aad5c10f98d76e2b9ac30a9398016a8501d
Image Layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1781049600' |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; apt-get dist-clean # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; apt-get dist-clean # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends g++ gcc libc6-dev make pkg-config ; dpkgArch="$(dpkg --print-architecture)"; if [ "$dpkgArch" = 'arm64' ]; then apt-get install -y --no-install-recommends binutils-gold; fi; rm -rf /var/lib/apt/lists/* # buildkit |
| ENV GOLANG_VERSION=1.26.4 |
| ENV GOTOOLCHAIN=local |
| ENV GOPATH=/go |
| ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| COPY /target/ / # buildkit |
| RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
| WORKDIR /go |
| WORKDIR /build |
| ENV GOPRIVATE=gitea.unbound.se/shiny,gitea.unbound.se/unboundsoftware |
| ADD go.* /build # buildkit |
| RUN /bin/sh -c go mod download # buildkit |
| ARG CI_COMMIT=c5a8eb200fc0f94a754cb8ef22437ec53cba5fe0 |
| WORKDIR /build |
| ENV CGO_ENABLED=0 |
| ADD . /build # buildkit |
| RUN |1 CI_COMMIT=c5a8eb200fc0f94a754cb8ef22437ec53cba5fe0 /bin/sh -c GOOS=linux GOARCH=amd64 go build -tags prod -a -installsuffix cgo -mod=readonly -o /release/service -ldflags "-w -s -X main.buildVersion=${CI_COMMIT}" ./cmd/service # buildkit |
Details
2026-06-20 19:31:46 +00:00
Versions (337)
View all
Container
580
OCI / Docker
linux/amd64
417 MiB
c5a8eb200fc0f94a754cb8ef22437ec53cba5fe0
2026-06-20
refs_pull_803_head
2026-06-20
build
2026-06-20
modules
2026-06-20
bbff1a5b80a5b1fc8ba6faf85de04161c2f040f8
2026-06-19