|
|
FROM golang:1.13 as builder
|
|
|
FROM 192.168.0.243:5000/mmm/mmm-oppmg:20200110 as builder
|
|
|
#FROM golang:1.13 as builder
|
|
|
ENV GOPROXY https://goproxy.cn
|
|
|
ENV GO111MODULE on
|
|
|
ENV GOPATH /go
|
...
|
...
|
@@ -13,7 +14,8 @@ RUN go mod download |
|
|
COPY . .
|
|
|
RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o opp main.go
|
|
|
|
|
|
FROM alpine:latest
|
|
|
#FROM alpine:latest
|
|
|
FROM 192.168.0.243:5000/mmm/mmmopp:20200110
|
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
|
|
|
&& apk add --no-cache tzdata \
|
|
|
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
...
|
...
|
|