1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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"]