作者 yangfu

修改配置

1 -#FROM 192.168.0.243:5000/mmm/mmmopp:20200422 as builder  
2 -FROM golang:1.13 as builder 1 +FROM 192.168.0.243:5000/mmm/mmmopp:20200422 as builder
  2 +#FROM golang:1.13 as builder
3 ENV GOPROXY https://goproxy.cn 3 ENV GOPROXY https://goproxy.cn
4 ENV GO111MODULE on 4 ENV GO111MODULE on
5 ENV GOPATH /go 5 ENV GOPATH /go
6 -RUN git clone http://gitlab.fjmaimaimai.com/mmm-go/gocomm.git /go/src/gocomm  
7 -#RUN cd /go/src/gocomm \  
8 -# && git pull 6 +#RUN git clone http://gitlab.fjmaimaimai.com/mmm-go/gocomm.git /go/src/gocomm
  7 +RUN cd /go/src/gocomm \
  8 + && git pull
9 WORKDIR /go/src/openapi 9 WORKDIR /go/src/openapi
10 10
11 COPY go.mod . 11 COPY go.mod .
@@ -13,8 +13,8 @@ COPY go.mod . @@ -13,8 +13,8 @@ COPY go.mod .
13 COPY . . 13 COPY . .
14 RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o openapi main.go 14 RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o openapi main.go
15 15
16 -FROM alpine:latest  
17 -#FROM 192.168.0.243:5000/mmm/mmmopp:20200110 16 +#FROM alpine:latest
  17 +FROM 192.168.0.243:5000/mmm/mmmopp:20200110
18 RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ 18 RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
19 && apk add --no-cache tzdata \ 19 && apk add --no-cache tzdata \
20 && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ 20 && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
1 [dev-online] 1 [dev-online]
2 #Ali could 2 #Ali could
3 -AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC"  
4 -AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO" 3 +#AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC"
  4 +#AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO"
  5 +AccessKeyID ="LTAI4Fz1LUBW2fXp6QWaJHRS"
  6 +AccessKeySecret ="aLZXwK8pgrs10Ws03qcN7NsrSXFVsg"
5 7
6 #日志 8 #日志
7 log_level = "${LOG_LEVEL||debug}" 9 log_level = "${LOG_LEVEL||debug}"
8 aliyun_logs_access ="${aliyun_logs_access||F:/log/app.log}" 10 aliyun_logs_access ="${aliyun_logs_access||F:/log/app.log}"
9 11
10 #阿里云 12 #阿里云
11 -cname ="https://media.goexample.live/" 13 +#cname ="https://media.goexample.live/"
  14 +cname ="https://media.fjmaimaimai.com/"
12 15
1 [prod] 1 [prod]
2 #Ali could 2 #Ali could
3 -AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC"  
4 -AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO"  
  3 +#AccessKeyID ="LTAI4FhiZ3UktC6N1u3H5GFC"
  4 +#AccessKeySecret ="UyspWwdni55CYQ02hUCint4qY2jNYO"
  5 +AccessKeyID ="LTAI4Fz1LUBW2fXp6QWaJHRS"
  6 +AccessKeySecret ="aLZXwK8pgrs10Ws03qcN7NsrSXFVsg"
  7 +
  8 +#日志
  9 +log_level = "${LOG_LEVEL||debug}"
  10 +aliyun_logs_access ="${aliyun_logs_access||F:/log/app.log}"
  11 +
  12 +#阿里云
  13 +#cname ="https://media.goexample.live/"
  14 +cname ="https://media.fjmaimaimai.com/"