d2hass (latest)
Published 2024-01-29 03:28:40 +00:00 by scott
Installation
docker pull git.spruett.net/scott/d2hass:latest
sha256:8e01faac0d3c35e0509dc23202d16409eb40d0b3901cf1eae3f4122144b71619
Image Layers
ADD file:077a3156bd8271f26498ae6ac3800e68a42b9277581bc81eea31fec1a123dca5 in / |
CMD ["bash"] |
/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/* |
/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/* |
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.20.13 |
ENV GOPATH=/go |
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
COPY /usr/local/go/ /usr/local/go/ # buildkit |
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
WORKDIR /go |
WORKDIR /app |
COPY go.mod ./ |
COPY go.sum ./ |
RUN go mod download |
COPY *.go ./ |
RUN go build . |