check that gomod dir available before binding
This commit is contained in:
parent
4b3ee58dd2
commit
83198a2d0e
@ -4,9 +4,9 @@ ENV GOPRIVATE=gitea.pena/PenaSide/common,gitea.pena/PenaSide/linters-golang,gite
|
||||
ENV GOINSECURE=gitea.pena/PenaSide/common,gitea.pena/PenaSide/linters-golang,gitea.pena/PenaSide/customer,gitea.pena/PenaSide/trashlog,gitea.pena/PenaSide/hlog
|
||||
ENV GOPROXY=https://proxy.golang.org,direct
|
||||
COPY . .
|
||||
RUN mkdir /go/pkg/mod/
|
||||
RUN --mount=type=bind,source=go-cache,dst=/go/pkg/mod/,rw=true go mod download
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app ./cmd/verification/main.go
|
||||
RUN ls /go/pkg/mod/
|
||||
RUN pwd
|
||||
RUN printenv
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user