FROM alpine:3.12

MAINTAINER cnbattle <qiaicn@gmail.com>

# 参考如下代码: apk --no-cache add ca-certificates 
RUN sed -ig 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
  && apk --no-cache add ca-certificates tzdata \
  && echo 'Asia/Shanghai' >/etc/timezone

COPY ./api /app

EXPOSE 1993

ENTRYPOINT ["/app"]
来源:中战博客,欢迎分享!
标签: go,http,docker,x509