|
|
FROM 192.168.0.243:5000/mmm/mmmopp:20200110 as builder
|
|
|
#FROM golang:1.13 as builder
|
|
|
#FROM 192.168.0.243:5000/mmm/mmmopp:20200110 as builder
|
|
|
FROM golang:1.13 as builder
|
|
|
ENV GOPROXY https://goproxy.cn
|
|
|
ENV GO111MODULE on
|
|
|
ENV GOPATH /go
|
...
|
...
|
@@ -13,8 +13,8 @@ COPY go.mod . |
|
|
COPY . .
|
|
|
RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o openapi main.go
|
|
|
|
|
|
#FROM alpine:latest
|
|
|
FROM 192.168.0.243:5000/mmm/mmmopp:20200110
|
|
|
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 \
|
...
|
...
|
|