12345678910111213141516171819202122232425262728293031323334 |
- # FROM alpine
- # RUN echo -e https://mirrors.ustc.edu.cn/alpine/v3.15/main > /etc/apk/repositories \
- # && cat /etc/apk/repositories \
- # # 设置时区为上海
- # && apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
- # && echo "Asia/Shanghai" > /etc/timezone \
- # && apk del tzdata \
- # && apk add musl-dev \
- # # 解决apline 运行编译后的执行文件 not found错误
- # # 由于alpine镜像使用的是musl libc而不是gnu libc,/lib64/ 是不存在的。但他们是兼容的,可以创建个软连接
- # && mkdir /lib64 \
- # && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 \
- FROM registry.cn-chengdu.aliyuncs.com/infish/alpine
- # https://github.com/Docker-Hub-frolvlad/docker-alpine-glibc
- RUN echo -e https://mirrors.ustc.edu.cn/alpine/v3.15/main > /etc/apk/repositories \
- && cat /etc/apk/repositories \
- # 设置时区为上海
- && apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
- && echo "Asia/Shanghai" > /etc/timezone \
- && apk del tzdata \
- && mkdir -p /root/box-cost
- WORKDIR /root/box-cost
- ADD token_jwt_key.pem token_jwt_key.pem
- ADD ./signature ./signature
- ADD ./app.yaml ./app.yaml
- ADD ./box-cost-service ./box-cost-service
- EXPOSE 8888
- ENTRYPOINT ["./box-cost-service"]
|