正在显示
1 个修改的文件
包含
8 行增加
和
8 行删除
@@ -15,13 +15,13 @@ COPY . . | @@ -15,13 +15,13 @@ COPY . . | ||
15 | RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o opp main.go | 15 | RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o opp main.go |
16 | 16 | ||
17 | #FROM alpine:latest | 17 | #FROM alpine:latest |
18 | -#FROM 192.168.0.243:5000/mmm/mmmopp:20200110 | ||
19 | -#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ | ||
20 | -# && apk add --no-cache tzdata \ | ||
21 | -# && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | ||
22 | -# && echo "Asia/Shanghai" > /etc/timezone \ | ||
23 | -# && rm -rf /var/cache/apk/* /tmp/* /var/tmp/* $HOME/.cache ## 清除缓存 | ||
24 | -#WORKDIR /root/ | ||
25 | -#COPY --from=builder /go/src/opp . | 18 | +FROM 192.168.0.243:5000/mmm/mmmopp:20200110 |
19 | +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ | ||
20 | + && apk add --no-cache tzdata \ | ||
21 | + && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | ||
22 | + && echo "Asia/Shanghai" > /etc/timezone \ | ||
23 | + && rm -rf /var/cache/apk/* /tmp/* /var/tmp/* $HOME/.cache ## 清除缓存 | ||
24 | +WORKDIR /root/ | ||
25 | +COPY --from=builder /go/src/opp . | ||
26 | EXPOSE 8080 | 26 | EXPOSE 8080 |
27 | CMD ["./opp"] | 27 | CMD ["./opp"] |
-
请 注册 或 登录 后发表评论