...
|
...
|
@@ -3,13 +3,13 @@ FROM 192.168.0.243:5000/mmm/mmm-oppmg:20200110 as builder |
|
|
ENV GOPROXY https://goproxy.cn
|
|
|
ENV GO111MODULE on
|
|
|
ENV GOPATH /go
|
|
|
RUN git clone http://gitlab.fjmaimaimai.com/mmm-go/gocomm.git /go/src/gocomm \
|
|
|
&& cd /go/src/gocomm \
|
|
|
&& git pull
|
|
|
#RUN git clone http://gitlab.fjmaimaimai.com/mmm-go/gocomm.git /go/src/gocomm \
|
|
|
# && cd /go/src/gocomm \
|
|
|
# && git pull
|
|
|
WORKDIR /go/src/opp
|
|
|
|
|
|
COPY go.mod .
|
|
|
RUN go mod download
|
|
|
#RUN go mod download
|
|
|
|
|
|
COPY . .
|
|
|
RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o opp main.go
|
...
|
...
|
|