images/go-builder (sha256:2c62fdf83773bd4e583fc5222fff3fde56069dbdc4ef0326da5393a5e5c3ae81)
Published 2026-04-27 05:01:58 +02:00 by lars
Installation
docker pull git.hashdot.co/boring.tools/images/go-builder@sha256:2c62fdf83773bd4e583fc5222fff3fde56069dbdc4ef0326da5393a5e5c3ae81sha256:2c62fdf83773bd4e583fc5222fff3fde56069dbdc4ef0326da5393a5e5c3ae81Image layers
| ADD alpine-minirootfs-3.21.7-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache ca-certificates tzdata # buildkit |
| COPY ./base-images/alpine-runtime/harden.sh /harden.sh # buildkit |
| RUN /bin/sh -c chmod +x /harden.sh && /harden.sh && rm /harden.sh # buildkit |
| RUN /bin/sh -c addgroup -g 10001 -S appgroup && adduser -u 10001 -S appuser -G appgroup -h /home/appuser -s /sbin/nologin # buildkit |
| USER 10001:10001 |
| WORKDIR /home/appuser |
| ARG GO_VERSION=1.26.2 |
| USER root |
| RUN |1 GO_VERSION=1.26.2 /bin/sh -c apk add --no-cache git # buildkit |
| ADD https://go.dev/dl/go1.26.2.linux-amd64.tar.gz /tmp/go.tar.gz # buildkit |
| RUN |1 GO_VERSION=1.26.2 /bin/sh -c tar -C /usr/local -xzf /tmp/go.tar.gz && rm /tmp/go.tar.gz # buildkit |
| ENV PATH=/usr/local/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV GOPATH=/go |
| ENV GOCACHE=/tmp/go-cache |
| WORKDIR /build |