作者 Administrator

更新 Dockerfile

正在显示 1 个修改的文件 包含 4 行增加4 行删除
FROM 192.168.0.243:5000/mmm/mmmopp:base as builder
#FROM golang:1.13 as builder
#FROM 192.168.0.243:5000/mmm/mmmopp:base as builder
FROM golang:1.13 as builder
ENV GOPROXY https://goproxy.cn
ENV GO111MODULE on
ENV GOPATH /go
... ... @@ -16,8 +16,8 @@ COPY go.mod .
COPY . .
RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o opp main.go
#FROM alpine:latest
FROM 192.168.0.243:5000/mmm/mmmopp:base
FROM alpine:latest
#FROM 192.168.0.243:5000/mmm/mmmopp:base
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 \
... ...