| # debian.sh --arch 'amd64' out/ 'bookworm' '@1742169600' |
| 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.23.7 |
| 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 |
| LABEL authors=malmal200 |
| WORKDIR /app |
| COPY multi:f82f184b25afcb237500953562292a42059e0c1b380d18332b028d7a764bc760 in ./ |
| /bin/sh -c go mod download |
| COPY multi:604c1c5c0fa43f3d0f73168edabaf8fec88356557088e0ef0f8a483fffd537c8 in ./dice/ |
| COPY multi:2b683327cac65bee6b25e472fcf294678104670c8396cbddb96f2984ef054ea8 in ./application/ |
| /bin/sh -c CGO_ENABLED=0 GOOS=linux go build -o /go-bot ./application |
| ENTRYPOINT ["/go-bot"] |