正在显示
1 个修改的文件
包含
7 行增加
和
6 行删除
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 cd /go/src/gocomm \ | ||
7 | - && 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 | ||
8 | WORKDIR /go/src/openapi | 9 | WORKDIR /go/src/openapi |
9 | 10 | ||
10 | COPY go.mod . | 11 | COPY go.mod . |
@@ -12,8 +13,8 @@ COPY go.mod . | @@ -12,8 +13,8 @@ COPY go.mod . | ||
12 | COPY . . | 13 | COPY . . |
13 | 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 |
14 | 15 | ||
15 | -#FROM alpine:latest | ||
16 | -FROM 192.168.0.243:5000/mmm/mmmopp:20200110 | 16 | +FROM alpine:latest |
17 | +#FROM 192.168.0.243:5000/mmm/mmmopp:20200110 | ||
17 | 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 \ |
18 | && apk add --no-cache tzdata \ | 19 | && apk add --no-cache tzdata \ |
19 | && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | 20 | && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ |
-
请 注册 或 登录 后发表评论