asws icon indicating copy to clipboard operation
asws copied to clipboard

unable build docker image

Open soufian044 opened this issue 7 years ago • 2 comments

Hi there I'm this getting when building the docker img Sending build context to Docker daemon 19.33MB

Step 1/16 : FROM golang:1.11.5-alpine3.8 AS builder
 ---> 368fd204e427
Step 2/16 : RUN apk update  && apk add git
 ---> Using cache
 ---> 8c75b3fcb859
Step 3/16 : RUN mkdir -p /go/src  && mkdir -p /go/bin  && mkdir -p /go/pkg
 ---> Using cache
 ---> 1c8db09eec08
Step 4/16 : ENV GOPATH=/go
 ---> Using cache
 ---> 318742e0de6a
Step 5/16 : ENV PATH=$GOPATH/bin:$PATH
 ---> Using cache
 ---> 26f4f6f3a66f
Step 6/16 : ENV PROJECT=$GOPATH/src/gitlab.com/txn2/asws
 ---> Using cache
 ---> a7908d16d748
Step 7/16 : RUN mkdir -p $PROJECT
 ---> Using cache
 ---> d47f86778f7f
Step 8/16 : WORKDIR $PROJECT
 ---> Using cache
 ---> b49c129f280d
Step 9/16 : ADD . .
 ---> Using cache
 ---> 36966f4dccba
Step 10/16 : RUN go get github.com/json-iterator/go
 ---> Using cache
 ---> bd9116c1754b
Step 11/16 : RUN CGO_ENABLED=0 go build -tags=jsoniter -a -installsuffix cgo -o /go/bin/asws $PROJECT/cmd/asws.go
 ---> Using cache
 ---> 5a6abf469a77
Step 12/16 : FROM alpine:3.8
 ---> d2696274f894
Step 13/16 : RUN apk --no-cache add ca-certificates
 ---> Using cache
 ---> ee841d81d270
Step 14/16 : COPY --from=builder /go/bin/ops /bin/ops
COPY failed: stat /var/lib/docker/overlay2/6e40979668914914473afc16d109b71d3bba8bea326e7e03242c45a2682d42de/merged/go/bin/ops: no such file or directory

i belive there is something wrong in here maybe :

ENV GOPATH=/go
ENV PATH=$GOPATH/bin:$PATH
ENV PROJECT=$GOPATH/src/gitlab.com/txn2/asws

what could be wrong ?

soufian044 avatar Jan 29 '19 14:01 soufian044

#2

soufian044 avatar Jan 29 '19 14:01 soufian044

This project was left in a strange state as is was refactored from a previous internal project. We use the container for dozens of projects but have not noticed these bugs in the source since we have not had a reason to update it.

Thanks for the pull request. I really appreciate contributions.

cjimti avatar Jan 29 '19 17:01 cjimti