gc_channel_consumer (latest)
Published 2025-10-30 16:30:20 +11:00 by fholland
Installation
docker pull huron.connectingnow.net/fholland/gc_channel_consumer:latestsha256:9f82082be9bdd784af93843705bb0d76ef4dbfdfc9e0417c92dc9a339e255bacImage Layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1751241600' |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends g++ gcc libc6-dev make pkg-config ; rm -rf /var/lib/apt/lists/* # buildkit |
| ENV GOLANG_VERSION=1.24.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 /app |
| COPY go.mod go.sum ./ # buildkit |
| RUN /bin/sh -c go mod download # buildkit |
| COPY . . # buildkit |
| RUN /bin/sh -c CGO_ENABLED=0 GOOS=linux go build -o /gc_channel_consumer # buildkit |
| CMD ["/gc_channel_consumer"] |