FROM node:8-alpine

ARG CONFIG=conf/default.js
ARG PROJECT=koa2-hello
ARG TARGET=src/config/

# 拷贝代码
# todo: 从代码镜像中拷贝
ADD code.tar.gz /home/quant_group

# 拷贝配置文件
WORKDIR /home/quant_group/${PROJECT}
COPY ${CONFIG} ${TARGET}

COPY docker-entrypoint.sh ./
CMD ./docker-entrypoint.sh
