web-humas-be (sha256:ea48fff0315c6f26da79f423eb3d1bc0355077414fe35b22f729e80b3504d971)
Published 2026-03-02 04:25:47 +00:00 by administrator
Installation
docker pull 38.47.180.165:3000/humas/web-humas-be@sha256:ea48fff0315c6f26da79f423eb3d1bc0355077414fe35b22f729e80b3504d971sha256:ea48fff0315c6f26da79f423eb3d1bc0355077414fe35b22f729e80b3504d971Image Layers
| ADD alpine-minirootfs-3.23.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit |
| ENV GOLANG_VERSION=1.26.0 |
| 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 . . # buildkit |
| RUN /bin/sh -c go mod download # buildkit |
| RUN /bin/sh -c go get -v ./... # buildkit |
| RUN /bin/sh -c go mod vendor # buildkit |
| RUN /bin/sh -c go build -o main . # buildkit |
| EXPOSE [8800/tcp] |
| CMD ["sh" "-c" "go run main.go"] |