FROM alpine:3.12

MAINTAINER cnbattle <[email protected]>

# 参考如下代码: 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"]