刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame^] | 1 | FROM alpine:latest |
| 2 | |
| 3 | # 安装toolkit |
| 4 | RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories |
| 5 | RUN apk add --update curl && rm -rf /var/cache/apk/* |
| 6 | |
| 7 | RUN mkdir -p /root/poa-api-docs |
| 8 | |
| 9 | COPY api-docs/ /root/poa-api-docs/ |
| 10 | |
| 11 | COPY exec.sh /root/poa-api-docs/ |
| 12 | RUN chmod +x /root/poa-api-docs/exec.sh |
| 13 | |
| 14 | COPY docker-entrypoint.sh /root/poa-api-docs/ |
| 15 | RUN chmod +x /root/poa-api-docs/docker-entrypoint.sh |
| 16 | |
| 17 | ENTRYPOINT ["/root/poa-api-docs/docker-entrypoint.sh"] |
| 18 | CMD ["app"] |