FROM alpine:latest RUN echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories && \ echo "http://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories RUN apk update --no-cache && apk add --no-cache ca-certificates tzdata ENV TZ Asia/Shanghai WORKDIR $GOPATH/src/lzyd-user-api COPY . $GOPATH/src/lzyd-user-api EXPOSE 4003 CMD ["./lzyd-front-user-api"]